fix:fluttetToast backHome

This commit is contained in:
yifeng.yl
2019-01-25 10:57:48 +08:00
parent 515325b36d
commit c7cb69a0f6
7 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ class _PopupMenuButtonDemoState extends State<PopupMenuButtonDemo> {
}
void showInSnackBar(String value) {
Fluttertoast.showToast(
Fluttertoast.instance.showToast(
msg: value,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,