📅  最后修改于: 2022-03-11 14:56:30.403000             🧑  作者: Mango
final snackBar = SnackBar(
content: Text('Yay! A SnackBar!'),
action: SnackBarAction(
label: 'Undo',
onPressed: () {
// Some code to undo the change.
},
),
);