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

@ -42,7 +42,7 @@ class _WidgetDemoState extends State<WidgetDemo> {
String _router = '';
void showInSnackBar(String value) {
Fluttertoast.showToast(
Fluttertoast.instance.showToast(
msg: value,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,

View File

@ -27,7 +27,7 @@ class _WebViewPageState extends State<WebViewPage> {
CollectionControlModel _collectionControl = new CollectionControlModel();
void showInSnackBar(String value) {
Fluttertoast.showToast(
Fluttertoast.instance.showToast(
msg: value,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,

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(

View File

@ -25,7 +25,7 @@ dependencies:
sqflite: ^0.12.1
flutter_markdown: ^0.2.0
url_launcher: ^4.0.1
fluttertoast: ^2.2.2
fluttertoast: ^2.2.7
# 本地存储、收藏功能
shared_preferences: ^0.4.3
dio: ^1.0.6