diff --git a/lib/app/modules/onboarding.dart b/lib/app/modules/onboarding.dart index 0cdbf66..b57654c 100644 --- a/lib/app/modules/onboarding.dart +++ b/lib/app/modules/onboarding.dart @@ -91,9 +91,9 @@ class _OnBordingState extends State { class DotIndicator extends StatelessWidget { const DotIndicator({ - Key? key, + super.key, this.isActive = false, - }) : super(key: key); + }); final bool isActive; diff --git a/lib/app/modules/tasks/widgets/task_list.dart b/lib/app/modules/tasks/widgets/task_list.dart index 690d03a..96e68be 100644 --- a/lib/app/modules/tasks/widgets/task_list.dart +++ b/lib/app/modules/tasks/widgets/task_list.dart @@ -72,7 +72,7 @@ class _TasksListState extends State { }, ); }, - ).toList(), + ), ], ); }, diff --git a/lib/app/modules/todos/widgets/todos_list.dart b/lib/app/modules/todos/widgets/todos_list.dart index ad0d487..b8ea8e2 100644 --- a/lib/app/modules/todos/widgets/todos_list.dart +++ b/lib/app/modules/todos/widgets/todos_list.dart @@ -96,37 +96,35 @@ class _TodosListState extends State { ) : ListView( children: [ - ...todos - .map( - (todo) => TodoCard( - key: ValueKey(todo), - todo: todo, - allTodos: widget.allTodos, - calendare: widget.calendare, - onTap: () { - todoController.isMultiSelectionTodo.isTrue - ? todoController.doMultiSelectionTodo(todo) - : showModalBottomSheet( - enableDrag: false, - context: context, - isScrollControlled: true, - builder: (BuildContext context) { - return TodosAction( - text: 'editing'.tr, - edit: true, - todo: todo, - category: true, - ); - }, + ...todos.map( + (todo) => TodoCard( + key: ValueKey(todo), + todo: todo, + allTodos: widget.allTodos, + calendare: widget.calendare, + onTap: () { + todoController.isMultiSelectionTodo.isTrue + ? todoController.doMultiSelectionTodo(todo) + : showModalBottomSheet( + enableDrag: false, + context: context, + isScrollControlled: true, + builder: (BuildContext context) { + return TodosAction( + text: 'editing'.tr, + edit: true, + todo: todo, + category: true, ); - }, - onLongPress: () { - todoController.isMultiSelectionTodo.value = true; - todoController.doMultiSelectionTodo(todo); - }, - ), - ) - .toList(), + }, + ); + }, + onLongPress: () { + todoController.isMultiSelectionTodo.value = true; + todoController.doMultiSelectionTodo(todo); + }, + ), + ), ], ); }, diff --git a/lib/main.dart b/lib/main.dart index ecf00a8..120c944 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -105,7 +105,7 @@ Future isarInit() async { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); static Future updateAppState( BuildContext context, { diff --git a/pubspec.lock b/pubspec.lock index 469815e..c40073e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -314,10 +314,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 + sha256: ad76540d21c066228ee3f9d1dad64a9f7e46530e8bb7c85011a88bc1fd874bc5 url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "3.0.0" flutter_local_notifications: dependency: "direct main" description: @@ -545,10 +545,10 @@ packages: dependency: transitive description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "3.0.0" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 6791ac5..5fa1cf9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -41,7 +41,7 @@ dev_dependencies: flutter_test: sdk: flutter build_runner: ^2.4.6 - flutter_lints: ^2.0.3 + flutter_lints: ^3.0.0 isar_generator: ^3.1.0+1 flutter_native_splash: ^2.3.4 flutter_launcher_icons: ^0.13.1