浏览代码

changed opacity of toast

ashilkn 3 年之前
父节点
当前提交
8f27a6f857
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/utils/toast_util.dart

+ 3 - 3
lib/utils/toast_util.dart

@@ -13,13 +13,13 @@ Future<void> showToast(String message,
         toastLength: toastLength,
         toastLength: toastLength,
         gravity: ToastGravity.BOTTOM,
         gravity: ToastGravity.BOTTOM,
         timeInSecForIosWeb: 1,
         timeInSecForIosWeb: 1,
-        backgroundColor: Color.fromRGBO(127, 127, 127, 0.5),
+        backgroundColor: Color.fromRGBO(127, 127, 127, 0.8),
         textColor: Colors.white,
         textColor: Colors.white,
         fontSize: 16.0);
         fontSize: 16.0);
   } else {
   } else {
     EasyLoading.instance
     EasyLoading.instance
-      ..backgroundColor = Color.fromRGBO(127, 127, 127, 0.5)
-      ..indicatorColor = Color.fromRGBO(127, 127, 127, 0.5)
+      ..backgroundColor = Color.fromRGBO(127, 127, 127, 0.8)
+      ..indicatorColor = Color.fromRGBO(127, 127, 127, 0.8)
       ..textColor = Colors.white
       ..textColor = Colors.white
       ..userInteractions = true
       ..userInteractions = true
       ..loadingStyle = EasyLoadingStyle.custom;
       ..loadingStyle = EasyLoadingStyle.custom;