|
...
|
...
|
@@ -18,10 +18,12 @@ import 'package:fluwx/fluwx.dart'; |
|
|
|
import 'package:one_key/pages/login/web_page.dart';
|
|
|
|
import 'package:one_key/provider/my_model.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/dialog_util.dart';
|
|
|
|
import 'package:one_key/utils/lunar_calendar.dart';
|
|
|
|
import 'package:one_key/utils/misc.dart';
|
|
|
|
import 'package:one_key/route/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/screen_util.dart';
|
|
|
|
import 'package:one_key/widgets/loading.dart';
|
|
|
|
import 'package:package_info/package_info.dart';
|
|
|
|
import 'package:permission_handler/permission_handler.dart';
|
|
...
|
...
|
@@ -1123,7 +1125,30 @@ class Utils { |
|
|
|
|
|
|
|
static void showToast(String msg) {
|
|
|
|
Fluttertoast.showToast(
|
|
|
|
msg: msg, toastLength: Toast.LENGTH_LONG, gravity: ToastGravity.CENTER);
|
|
|
|
msg: msg,
|
|
|
|
toastLength: Toast.LENGTH_LONG,
|
|
|
|
gravity: ToastGravity.CENTER);
|
|
|
|
// FToast().showToast(
|
|
|
|
// positionedToastBuilder: (context,child){
|
|
|
|
|
|
|
|
// },
|
|
|
|
// child: Center(
|
|
|
|
// child: Container(
|
|
|
|
// height: w(48),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(10), vertical: w(15)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// borderRadius: BorderRadius.circular(r(10)),
|
|
|
|
// color: MyColours.color_2e000000),
|
|
|
|
// child: Text(
|
|
|
|
// msg,
|
|
|
|
// style: TextStyle(color: MyColours.color_F8F9FD, fontSize: font(12)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ));
|
|
|
|
}
|
|
|
|
|
|
|
|
static void removeToast() {
|
|
|
|
Fluttertoast.cancel();
|
|
|
|
}
|
|
|
|
|
|
|
|
//本地图片资源路径
|
...
|
...
|
|