xxxxxxxxxx
// The FlatButton widget has been deprecated in Flutter version 1.26.0
// You can replace it with the TextButton widget.
TextButton(
onPressed: () {
// Add your onPressed logic here
},
child: Text('Button'),
)
xxxxxxxxxx
flutter replacement for flatbutton
The FlatButton , RaisedButton and OutlineButton widgets have been replaced by TextButton , ElevatedButton , and OutlinedButton respectively.