Todo editing

This commit is contained in:
Sewmina
2022-04-05 06:52:58 +05:30
parent b7ce14a558
commit 7aa8712c16
7 changed files with 95 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ import 'package:tasktracker/NewJournal.dart';
import 'package:tasktracker/NewTodo.dart';
import 'package:tasktracker/main.dart';
import 'Data.dart';
import 'DebugHelper.dart';
import 'User.dart' as User;
import 'Dialogs.dart';
@@ -366,9 +367,10 @@ class _TodosPageState extends State<TodosPage> {
if (selecting)
InkWell(
onTap: () {
// Navigator.of(context).push(MaterialPageRoute(builder: (context) => NewJournal(date: todo.day, title: todo.title, text: todo.description,))).then((val) {
// setState(() {});
// });
Debug.Log('notification : ${todo.notificationTime}');
Navigator.of(context).push(MaterialPageRoute(builder: (context) =>NewTodo(selectedTask: TaskType.getDisplayName(todo.task!), metadata: todo.metadata, dueDate: todo.dueDate, notificationTime: todo.notificationTime, old_id: todo.id,))).then((val) {
setState(() {});
});
selecting = false;
setState(() {});
},