From 317e9e368c74bb9d9aca2fdee4153c3ee3e1efb3 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Tue, 19 Jan 2021 15:36:36 -0800 Subject: [PATCH] Fix web_dashboard analysis warnings on beta channel fixes #660 --- experimental/web_dashboard/lib/src/pages/entries.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/experimental/web_dashboard/lib/src/pages/entries.dart b/experimental/web_dashboard/lib/src/pages/entries.dart index 40e25c3fac5..19b2672b8c1 100644 --- a/experimental/web_dashboard/lib/src/pages/entries.dart +++ b/experimental/web_dashboard/lib/src/pages/entries.dart @@ -110,7 +110,7 @@ class EntryTile extends StatelessWidget { trailing: Row( mainAxisSize: MainAxisSize.min, children: [ - FlatButton( + TextButton( child: Text('Edit'), onPressed: () { showDialog( @@ -121,7 +121,7 @@ class EntryTile extends StatelessWidget { ); }, ), - FlatButton( + TextButton( child: Text('Delete'), onPressed: () async { var shouldDelete = await showDialog( @@ -129,11 +129,11 @@ class EntryTile extends StatelessWidget { builder: (context) => AlertDialog( title: Text('Delete entry?'), actions: [ - FlatButton( + TextButton( child: Text('Cancel'), onPressed: () => Navigator.of(context).pop(false), ), - FlatButton( + TextButton( child: Text('Delete'), onPressed: () => Navigator.of(context).pop(true), ), @@ -146,7 +146,7 @@ class EntryTile extends StatelessWidget { .entries .delete(category.id, entry.id); - Scaffold.of(context).showSnackBar( + ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text('Entry deleted'), ),