提交 0bc02360 authored 作者: shixiaochen's avatar shixiaochen

1、优化toast居中展示;

上级 57a36676
...@@ -14,8 +14,7 @@ class ToastUtil { ...@@ -14,8 +14,7 @@ class ToastUtil {
toastLength: toastDuration == ToastDuration.long toastLength: toastDuration == ToastDuration.long
? Toast.LENGTH_LONG ? Toast.LENGTH_LONG
: Toast.LENGTH_SHORT, : Toast.LENGTH_SHORT,
// ios 软键盘遮挡toast,设置中心展示 gravity: ToastGravity.CENTER,
gravity: Platform.isIOS ? ToastGravity.CENTER : ToastGravity.BOTTOM,
// timeInSecForIos: 1, // timeInSecForIos: 1,
backgroundColor: const Color(0xB3000000), backgroundColor: const Color(0xB3000000),
textColor: Colors.white, textColor: Colors.white,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论