Skip to content

Commit 6efcd88

Browse files
author
Max Steffen
committed
migrate to flutter 3.27.x
1 parent 2883702 commit 6efcd88

File tree

9 files changed

+31
-27
lines changed

9 files changed

+31
-27
lines changed

.fvm/flutter_sdk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/Users/msteffen/fvm/versions/3.22.2
1+
/Users/msteffen/fvm/versions/3.27.3

.fvm/fvm_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutterSdkVersion": "3.22.2"
2+
"flutterSdkVersion": "3.27.3"
33
}

.fvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutter": "3.22.2",
2+
"flutter": "3.27.3",
33
"flavors": {}
44
}

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"dart.flutterSdkPath": ".fvm/versions/3.22.2"
2+
"dart.flutterSdkPath": ".fvm/versions/3.27.3"
33
}

5_todo_app/lib/2_application/components/todo_entry_item/view_states/todo_entry_item_loading.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ToDoEntryItemLoading extends StatelessWidget {
88
Widget build(BuildContext context) {
99
return ListTile(
1010
title: Shimmer(
11-
color: Theme.of(context).colorScheme.onBackground,
11+
color: Theme.of(context).colorScheme.onSurface,
1212
child: const Text('Loading'),
1313
),
1414
);

5_todo_app/lib/2_application/pages/create_todo_collection/create_todo_collection_page.dart

+6-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ class _CreateToDoCollectionPageState extends State<CreateToDoCollectionPage> {
8282
final isValide = _formKey.currentState?.validate();
8383
if (isValide == true) {
8484
context.read<CreateToDoCollectionPageCubit>().submit().then(
85-
(_) => context.pop(true),
86-
);
85+
(_) {
86+
if (context.mounted) {
87+
context.pop(true);
88+
}
89+
},
90+
);
8791
}
8892
},
8993
child: Text('colelction_save'.tr()),

5_todo_app/lib/2_application/pages/home/home_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class _HomePageState extends State<HomePage> {
8181
selectedIndex: widget.index,
8282
destinations: destinations
8383
.map(
84-
(_) => AdaptiveScaffold.toRailDestination(_),
84+
(destination) => AdaptiveScaffold.toRailDestination(destination),
8585
)
8686
.toList(),
8787
),

5_todo_app/lib/2_application/pages/overview/view_states/todo_overview_loaded.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ToDoOverviewLoaded extends StatelessWidget {
6363
tooltip: 'overview_add_collection'.tr(),
6464
onPressed: () {
6565
context.pushNamed(CreateToDoCollectionPage.pageConfig.name).then((value) {
66-
if (value == true) {
66+
if (value == true && context.mounted) {
6767
context.read<ToDoOverviewCubit>().readToDoCollections();
6868
}
6969
});

5_todo_app/pubspec.yaml

+18-18
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
77
version: 1.0.0+1
88

99
environment:
10-
sdk: '>=3.4.0 <4.0.0'
10+
sdk: '>=3.6.0 <4.0.0'
1111

1212
dependencies:
1313
flutter:
1414
sdk: flutter
1515
flutter_localizations:
1616
sdk: flutter
1717
cupertino_icons: ^1.0.8
18-
go_router: ^14.2.1
19-
flutter_adaptive_scaffold: ^0.1.11+1
20-
uuid: ^4.4.2
18+
go_router: ^14.7.1
19+
flutter_adaptive_scaffold: ^0.1.12
20+
uuid: ^4.5.1
2121
either_dart: ^1.0.0
22-
equatable: ^2.0.5
23-
flutter_bloc: ^8.1.6
24-
shimmer_animation: ^2.2.1
22+
equatable: ^2.0.7
23+
flutter_bloc: ^9.0.0
24+
shimmer_animation: ^2.2.2
2525
json_annotation: ^4.9.0
2626
hive: ^2.2.3
27-
firebase_core: ^3.2.0
28-
firebase_auth: ^5.1.2
29-
firebase_ui_auth: ^1.15.0
30-
cloud_firestore: ^5.1.0
31-
meta: ^1.12.0
32-
firebase_crashlytics: ^4.0.3
33-
path_provider: ^2.1.3
27+
firebase_core: ^3.10.1
28+
firebase_auth: ^5.4.1
29+
firebase_ui_auth: ^1.16.1
30+
cloud_firestore: ^5.6.2
31+
meta: ^1.15.0
32+
firebase_crashlytics: ^4.3.1
33+
path_provider: ^2.1.5
3434
easy_localization: ^3.0.7
35-
alchemist: ^0.7.0
35+
alchemist: ^0.11.0
3636

3737
dev_dependencies:
38-
build_runner: ^2.4.11
38+
build_runner: ^2.4.14
3939
flutter_test:
4040
sdk: flutter
41-
flutter_lints: ^4.0.0
42-
json_serializable: ^6.8.0
41+
flutter_lints: ^5.0.0
42+
json_serializable: ^6.9.3
4343

4444
flutter:
4545
uses-material-design: true

0 commit comments

Comments
 (0)