From b64d6bfc69b48aa1c1bf441b638195f96f7f1c4a Mon Sep 17 00:00:00 2001 From: krish Date: Sun, 28 Jan 2024 16:50:20 +0530 Subject: [PATCH] Bug fixed --- lib/services/task_details.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/services/task_details.dart b/lib/services/task_details.dart index f4318af6..d67d4b5e 100644 --- a/lib/services/task_details.dart +++ b/lib/services/task_details.dart @@ -78,7 +78,10 @@ class _DetailRouteState extends State { TextButton( onPressed: () { saveChanges(); - Navigator.of(context).pop(); + Navigator.of(context).pushNamedAndRemoveUntil( + HomePage.routeName, + (route) => false, + ); setState(() {}); }, child: const Text('Yes'), @@ -208,10 +211,10 @@ class AttributeWidget extends StatelessWidget { @override Widget build(BuildContext context) { - var localValue = (value is DateTime) - ? DateFormat.yMEd().add_jms().format(value.toLocal()) - : ((value is BuiltList) ? (value).toBuilder() : value); - + var localValue = (value is DateTime) + ? DateFormat.yMEd().add_jms().format(value.toLocal()) + : ((value is BuiltList) ? (value).toBuilder() : value); + switch (name) { case 'description': return DescriptionWidget(