diff --git a/pubspec.yaml b/pubspec.yaml index f36294f..0a46ae3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,33 +6,33 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: ">=3.0.0 <4.0.0" - flutter: '>=3.0.5' + sdk: ">=3.2.0 <4.0.0" + flutter: '>=3.2.0' dependencies: flutter: sdk: flutter - flutter_bloc: ^8.1.3 - bloc: ^8.1.2 - logger: ^1.4.0 + flutter_bloc: ^8.1.5 + bloc: ^8.1.4 + logger: ^2.2.0 equatable: ^2.0.5 - http: ^1.0.0 + http: ^1.2.1 json_annotation: ^4.8.1 - shared_preferences: ^2.1.2 - dio: ^5.2.1+1 - intl: ^0.18.0 - google_fonts: ^5.1.0 + shared_preferences: ^2.2.2 + dio: ^5.4.2+1 + intl: ^0.18.1 + google_fonts: ^6.2.1 #analyzer: ^2.7.0 freezed_annotation: ^2.4.1 - intl_utils: ^2.8.3 + intl_utils: ^2.8.7 effective_dart: ^1.3.2 - flutter_svg: ^2.0.7 + flutter_svg: ^2.0.10+1 gap: ^3.0.1 # cached_network_image: ^3.2.3 - path_provider: ^2.0.15 - file: ^6.1.4 - get_it: ^7.2.0 - injectable: ^2.1.1 + path_provider: ^2.1.2 + file: ^7.0.0 + get_it: ^7.6.7 + injectable: ^2.4.1 flutter_localizations: sdk: flutter @@ -42,20 +42,20 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - build_runner: ^2.4.5 - injectable_generator: ^2.1.6 - flutter_gen_runner: ^5.3.1 - json_serializable: ^6.7.0 + build_runner: ^2.4.9 + injectable_generator: ^2.6.1 + flutter_gen_runner: ^5.4.0 + json_serializable: ^6.7.1 #coverage: ^1.1.0 - lint: ^2.1.2 - mockito: ^5.4.2 + lint: ^2.3.0 + mockito: ^5.4.4 #test: ^1.17.9 - bloc_test: ^9.1.3 - flutter_lints: ^2.0.1 - mocktail: ^0.3.0 - freezed: ^2.4.1 + bloc_test: ^9.1.7 + flutter_lints: ^3.0.2 + mocktail: ^1.0.3 + freezed: ^2.4.7 #dart_code_metrics: ^5.7.5 - network_image_mock: ^2.0.1 + network_image_mock: ^2.1.1 flutter: uses-material-design: true diff --git a/test/view/settings/settings_test.dart b/test/view/settings/settings_test.dart index 84d4902..fd24b02 100644 --- a/test/view/settings/settings_test.dart +++ b/test/view/settings/settings_test.dart @@ -53,16 +53,12 @@ void main() { expect( find.byWidgetPredicate( - (widget) => - widget is ThemeDialogCell && - widget.title == title && - widget.value == themeState, + (widget) => widget is ThemeDialogCell && widget.title == title && widget.value == themeState, ), findsOneWidget, ); - expect(find.widgetWithIcon(ThemeDialogCell, Icons.check), - findsOneWidget); + expect(find.widgetWithIcon(ThemeDialogCell, Icons.check), findsOneWidget); } void verifyThemeChange({ @@ -133,8 +129,7 @@ void main() { expect(find.byType(ThemeDialogCell), findsNWidgets(5)); }); - testWidgets('render bottom sheet dialog item for system theme', - (tester) async { + testWidgets('render bottom sheet dialog item for system theme', (tester) async { assertThemeDialogCell( tester, 'System Theme', @@ -143,8 +138,7 @@ void main() { ); }); - testWidgets('render bottom sheet dialog item for light theme', - (tester) async { + testWidgets('render bottom sheet dialog item for light theme', (tester) async { assertThemeDialogCell( tester, 'Light Theme', @@ -153,8 +147,7 @@ void main() { ); }); - testWidgets('render bottom sheet dialog item for dark theme', - (tester) async { + testWidgets('render bottom sheet dialog item for dark theme', (tester) async { assertThemeDialogCell( tester, 'Dark Theme', @@ -163,8 +156,7 @@ void main() { ); }); - testWidgets('render bottom sheet dialog item for yellow theme', - (tester) async { + testWidgets('render bottom sheet dialog item for yellow theme', (tester) async { assertThemeDialogCell( tester, 'Yellow Theme', @@ -212,15 +204,5 @@ void main() { newThemeState: AppTheme.yellow, ); }); - - testWidgets('change to experimental theme theme', (tester) async { - verifyThemeChange( - tester: tester, - widgetTitle: 'Experimental Theme', - prevThemeState: AppTheme.light, - themeMode: ThemeMode.light, - newThemeState: AppTheme.experimental, - ); - }); }); }