Browse Source

Reduce toast length

Vishnu Mohandas 4 years ago
parent
commit
8be410b583
1 changed files with 1 additions and 1 deletions
  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;
       ..loadingStyle = EasyLoadingStyle.custom;
     return EasyLoading.showToast(
     return EasyLoading.showToast(
       message,
       message,
-      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 6 : 3)),
+      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 5 : 3)),
       toastPosition: EasyLoadingToastPosition.bottom,
       toastPosition: EasyLoadingToastPosition.bottom,
     );
     );
   }
   }