iOS: Allow interaction when toast is shown

Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
Neeraj Gupta 2023-08-28 11:18:11 +05:30
parent 1173d8c160
commit f3d2e34abd

View file

@ -9,7 +9,6 @@ Future showToast(
BuildContext context,
String message, {
toastLength = Toast.LENGTH_LONG,
iOSDismissOnTap = true,
}) async {
if (Platform.isAndroid) {
await Fluttertoast.cancel();
@ -33,7 +32,7 @@ Future showToast(
message,
duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 5 : 1)),
toastPosition: EasyLoadingToastPosition.bottom,
dismissOnTap: iOSDismissOnTap,
dismissOnTap: false,
);
}
}