File tree 1 file changed +5
-5
lines changed
experimental/web_dashboard/lib/src/pages
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class EntryTile extends StatelessWidget {
110
110
trailing: Row (
111
111
mainAxisSize: MainAxisSize .min,
112
112
children: [
113
- FlatButton (
113
+ TextButton (
114
114
child: Text ('Edit' ),
115
115
onPressed: () {
116
116
showDialog <void >(
@@ -121,19 +121,19 @@ class EntryTile extends StatelessWidget {
121
121
);
122
122
},
123
123
),
124
- FlatButton (
124
+ TextButton (
125
125
child: Text ('Delete' ),
126
126
onPressed: () async {
127
127
var shouldDelete = await showDialog <bool >(
128
128
context: context,
129
129
builder: (context) => AlertDialog (
130
130
title: Text ('Delete entry?' ),
131
131
actions: [
132
- FlatButton (
132
+ TextButton (
133
133
child: Text ('Cancel' ),
134
134
onPressed: () => Navigator .of (context).pop (false ),
135
135
),
136
- FlatButton (
136
+ TextButton (
137
137
child: Text ('Delete' ),
138
138
onPressed: () => Navigator .of (context).pop (true ),
139
139
),
@@ -146,7 +146,7 @@ class EntryTile extends StatelessWidget {
146
146
.entries
147
147
.delete (category.id, entry.id);
148
148
149
- Scaffold .of (context).showSnackBar (
149
+ ScaffoldMessenger .of (context).showSnackBar (
150
150
SnackBar (
151
151
content: Text ('Entry deleted' ),
152
152
),
You can’t perform that action at this time.
0 commit comments