当用户登录['you have successfully logged in!']
时,如何显示小吃店或吐司,或者可能是导航后如何显示小吃店或吐司。
您可以这样显示它:
final snackBar = SnackBar(content: Text('you have successfully logged in!'));
Scaffold.of(context).showSnackBar(snackBar);
我建议您使用Flushbar插件:https://pub.dev/packages/flushbar您可以使用
来调用它Flushbar(
title: "You have successfully logged in!",
duration: Duration(seconds: 3),)..show(context)