TF-1042:Connection pop up never be disappear

This commit is contained in:
ManhNTX
2022-10-18 14:36:33 +07:00
committed by Dat H. Pham
parent 9626d12c77
commit df7f9b89ba
20 changed files with 191 additions and 165 deletions
+4 -1
View File
@@ -47,6 +47,7 @@ class AppToast {
Widget? actionIcon,
Widget? leadingIcon,
double? maxWidth,
bool infinityToast = false,
Color? backgroundColor,
Color? textColor,
Color? textActionColor,
@@ -103,6 +104,7 @@ class AppToast {
message,
maxWidth: maxWidth,
backgroundColor: backgroundColor,
infinityToast: infinityToast,
textColor: textColor,
leading: leadingIcon,
trailing: trailingAction);
@@ -113,6 +115,7 @@ class AppToast {
String message, {
Color? textColor,
Widget? leading,
bool infinityToast = false,
Widget? trailing,
double? maxWidth,
Color? backgroundColor
@@ -138,7 +141,7 @@ class AppToast {
child: PointerInterceptor(child: leading))
: null,
toastBorderRadius: 10.0,
toastDuration: 3
toastDuration: infinityToast ? null : 3,
);
}