Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
krish committed Jan 28, 2024
1 parent 218663d commit b64d6bf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/services/task_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ class _DetailRouteState extends State<DetailRoute> {
TextButton(
onPressed: () {
saveChanges();
Navigator.of(context).pop();
Navigator.of(context).pushNamedAndRemoveUntil(
HomePage.routeName,
(route) => false,
);
setState(() {});
},
child: const Text('Yes'),
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b64d6bf

Please sign in to comment.