瀏覽代碼

Reduce toast length

Vishnu Mohandas 4 年之前
父節點
當前提交
8be410b583
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/utils/toast_util.dart

+ 1 - 1
lib/utils/toast_util.dart

@@ -23,7 +23,7 @@ Future<void> showToast(String message, {toastLength: Toast.LENGTH_LONG}) {
       ..loadingStyle = EasyLoadingStyle.custom;
     return EasyLoading.showToast(
       message,
-      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 6 : 3)),
+      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 5 : 3)),
       toastPosition: EasyLoadingToastPosition.bottom,
     );
   }