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