Merge pull request #78 from Nealyang/master

fix:fluttetToast backHome
This commit is contained in:
一凨
2019-01-25 10:58:48 +08:00
committed by GitHub
7 changed files with 7 additions and 7 deletions

View File

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

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,

View File

@ -13,7 +13,7 @@ class PopupMenuDividerDemo extends StatelessWidget {
void showInSnackBar(String value) {
Fluttertoast.showToast(
Fluttertoast.instance.showToast(
msg: value,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,

View File

@ -204,7 +204,7 @@ class ColorDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
height: 1000.0,
height: 400.0,
child: DefaultTabController(
length: allPalettes.length,
child: Scaffold(