From 3bb6591cde74ac5fca0a507b8ef5c3636b50a078 Mon Sep 17 00:00:00 2001 From: andannn Date: Thu, 11 Jul 2024 15:17:01 +0900 Subject: [PATCH] update version --- lib/feature/aniflow_home/ani_flow_home.dart | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/feature/aniflow_home/ani_flow_home.dart b/lib/feature/aniflow_home/ani_flow_home.dart index a5ddc661..ff239471 100644 --- a/lib/feature/aniflow_home/ani_flow_home.dart +++ b/lib/feature/aniflow_home/ani_flow_home.dart @@ -226,7 +226,7 @@ class _AniFlowAppScaffoldState extends State {required List navigationList, required TopLevelNavigation selected, required Function(TopLevelNavigation) onNavigateToDestination}) { - final currentIndex = TopLevelNavigation.values.indexOf(selected); + final currentIndex = navigationList.indexOf(selected); return NavigationBar( destinations: navigationList .map( @@ -238,7 +238,7 @@ class _AniFlowAppScaffoldState extends State .toList(), onDestinationSelected: (index) { if (currentIndex != index) { - onNavigateToDestination(_topLevelNavigationList[index]); + onNavigateToDestination(navigationList[index]); } }, selectedIndex: currentIndex, diff --git a/pubspec.yaml b/pubspec.yaml index 4e07e078..885b548a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.1.19+20 +version: 0.1.20+21 environment: sdk: '>=3.0.6 <4.0.0'