Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonavichus committed Oct 19, 2023
1 parent d7dcf3c commit 814785a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 39 deletions.
4 changes: 2 additions & 2 deletions lib/app/modules/onboarding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ class _OnBordingState extends State<OnBording> {

class DotIndicator extends StatelessWidget {
const DotIndicator({
Key? key,
super.key,
this.isActive = false,
}) : super(key: key);
});

final bool isActive;

Expand Down
2 changes: 1 addition & 1 deletion lib/app/modules/tasks/widgets/task_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _TasksListState extends State<TasksList> {
},
);
},
).toList(),
),
],
);
},
Expand Down
58 changes: 28 additions & 30 deletions lib/app/modules/todos/widgets/todos_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,37 +96,35 @@ class _TodosListState extends State<TodosList> {
)
: 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);
},
),
),
],
);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Future<void> isarInit() async {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

static Future<void> updateAppState(
BuildContext context, {
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 814785a

Please sign in to comment.