mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-09-22 19:53:44 +08:00
fix:fluttetToast backHome
This commit is contained in:
@ -42,7 +42,7 @@ class _WidgetDemoState extends State<WidgetDemo> {
|
|||||||
String _router = '';
|
String _router = '';
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.instance.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
||||||
|
@ -27,7 +27,7 @@ class _WebViewPageState extends State<WebViewPage> {
|
|||||||
CollectionControlModel _collectionControl = new CollectionControlModel();
|
CollectionControlModel _collectionControl = new CollectionControlModel();
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.instance.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
||||||
|
@ -27,7 +27,7 @@ class _CheckedPopupMenuItemDemoState extends State<CheckedPopupMenuItemDemo> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void showInSnackBar(String value){
|
void showInSnackBar(String value){
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.instance.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
||||||
|
@ -24,7 +24,7 @@ class _PopupMenuButtonDemoState extends State<PopupMenuButtonDemo> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.instance.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
||||||
|
@ -13,7 +13,7 @@ class PopupMenuDividerDemo extends StatelessWidget {
|
|||||||
|
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.instance.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
||||||
|
@ -204,7 +204,7 @@ class ColorDemo extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 1000.0,
|
height: 400.0,
|
||||||
child: DefaultTabController(
|
child: DefaultTabController(
|
||||||
length: allPalettes.length,
|
length: allPalettes.length,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
|
@ -25,7 +25,7 @@ dependencies:
|
|||||||
sqflite: ^0.12.1
|
sqflite: ^0.12.1
|
||||||
flutter_markdown: ^0.2.0
|
flutter_markdown: ^0.2.0
|
||||||
url_launcher: ^4.0.1
|
url_launcher: ^4.0.1
|
||||||
fluttertoast: ^2.2.2
|
fluttertoast: ^2.2.7
|
||||||
# 本地存储、收藏功能
|
# 本地存储、收藏功能
|
||||||
shared_preferences: ^0.4.3
|
shared_preferences: ^0.4.3
|
||||||
dio: ^1.0.6
|
dio: ^1.0.6
|
||||||
|
Reference in New Issue
Block a user