📅  最后修改于: 2022-03-11 14:48:02.530000             🧑  作者: Mango
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
behavior: SnackBarBehavior.floating, // default SnackBarBehavior.fixed.
width: 250.0, // It can not be used if margin is specified.
content: const Text('Awesome!'),
),
);