Skip to content

Commit 177efa2

Browse files
authored
Fix web_dashboard analysis warnings on beta channel (#663)
fixes #660
1 parent f3de467 commit 177efa2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

experimental/web_dashboard/lib/src/pages/entries.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class EntryTile extends StatelessWidget {
110110
trailing: Row(
111111
mainAxisSize: MainAxisSize.min,
112112
children: [
113-
FlatButton(
113+
TextButton(
114114
child: Text('Edit'),
115115
onPressed: () {
116116
showDialog<void>(
@@ -121,19 +121,19 @@ class EntryTile extends StatelessWidget {
121121
);
122122
},
123123
),
124-
FlatButton(
124+
TextButton(
125125
child: Text('Delete'),
126126
onPressed: () async {
127127
var shouldDelete = await showDialog<bool>(
128128
context: context,
129129
builder: (context) => AlertDialog(
130130
title: Text('Delete entry?'),
131131
actions: [
132-
FlatButton(
132+
TextButton(
133133
child: Text('Cancel'),
134134
onPressed: () => Navigator.of(context).pop(false),
135135
),
136-
FlatButton(
136+
TextButton(
137137
child: Text('Delete'),
138138
onPressed: () => Navigator.of(context).pop(true),
139139
),
@@ -146,7 +146,7 @@ class EntryTile extends StatelessWidget {
146146
.entries
147147
.delete(category.id, entry.id);
148148

149-
Scaffold.of(context).showSnackBar(
149+
ScaffoldMessenger.of(context).showSnackBar(
150150
SnackBar(
151151
content: Text('Entry deleted'),
152152
),

0 commit comments

Comments
 (0)