Remove deprecated FlatButton (#98545)
This commit is contained in:
@@ -166,7 +166,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
style: const TextStyle(fontSize: 17.0),
|
||||
),
|
||||
),
|
||||
const FlatButton(
|
||||
const TextButton(
|
||||
child: Text('POP'),
|
||||
onPressed: SystemNavigator.pop,
|
||||
),
|
||||
|
||||
@@ -65,7 +65,7 @@ class MarqueeState extends State<Marquee> with SingleTickerProviderStateMixin {
|
||||
child: _MarqueeText(animation: animation),
|
||||
alignment: Alignment.centerLeft,
|
||||
),
|
||||
const FlatButton(child: Text('POP'), onPressed: SystemNavigator.pop),
|
||||
const TextButton(child: Text('POP'), onPressed: SystemNavigator.pop),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user