Skip to content

Commit 6bc625b

Browse files
committed
Replace FlatButton to TextButton
1 parent dbc71e2 commit 6bc625b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

example/lib/src/screen/home_page.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ class _HomePageState extends State<HomePage>
181181
return AlertDialog(
182182
content: Text(text),
183183
actions: <Widget>[
184-
FlatButton(
185-
child: Text('Close'),
186-
onPressed: () {
187-
Navigator.of(context).pop();
188-
},
189-
),
184+
TextButton(
185+
child: Text('Close'),
186+
onPressed: () {
187+
Navigator.of(context).pop();
188+
},
189+
style: TextButton.styleFrom(primary: accentColor)),
190190
],
191191
);
192192
},

0 commit comments

Comments
 (0)