提交 3edb5a39 authored 作者: guoqing's avatar guoqing

Merge branch 'v1.0.0' of http://t.clxkj.cn/clx-android/flutter_clx_base into v1.0.0

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
class ToastUtil {
static void showToast(String txt) {
if(txt.isEmpty){
txt = "信息异常";
}
Fluttertoast.showToast(
msg: txt,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
// timeInSecForIos: 1,
backgroundColor: Colors.grey,
textColor: Colors.white,
fontSize: 16.0);
}
}
\ No newline at end of file
......@@ -9,6 +9,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
final List<Widget>? actions;
final bool exitApp;
final Widget? leading;
final double? elevation;
const MyPageAppBar({
Key? key,
......@@ -20,6 +21,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
this.actions,
this.exitApp = false,
this.leading,
this.elevation,
}) : super(key: key);
@override
......@@ -32,6 +34,7 @@ class MyPageAppBar extends StatelessWidget implements PreferredSizeWidget {
primary: primary,
actions: actions,
leading: leading,
elevation: elevation,
);
}
......
......@@ -15,7 +15,7 @@ dependencies:
# 时间选择器 https://pub.dev/packages/flutter_cupertino_datetime_picker
flutter_cupertino_datetime_picker: 3.0.0
# 键盘工具类 https://pub.dev/packages/keyboard_actions
keyboard_actions: 3.4.7
keyboard_actions: 4.0.1
# Flutter常用工具类库 https://pub.dev/packages/flustars
flustars: 2.0.1
# sp https://pub.dev/packages/sp_util
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论