From bf0ffdc0a84e9a8f8c716b7348bc587533d13954 Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Tue, 18 Jun 2024 16:14:13 +0530 Subject: [PATCH] increase debounceDuration in ios. --- lib/common/ui/custom/internet_checker.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/ui/custom/internet_checker.dart b/lib/common/ui/custom/internet_checker.dart index dbc37afe9..8b4344bdb 100644 --- a/lib/common/ui/custom/internet_checker.dart +++ b/lib/common/ui/custom/internet_checker.dart @@ -12,7 +12,7 @@ class InternetChecker extends StatelessWidget { CDialog.showInternetUnavailableDialog(context); }, child: Container( - padding: const EdgeInsets.only(top: 5,bottom: 8), + padding: const EdgeInsets.only(top: 5, bottom: 8), alignment: Alignment.center, decoration: ShapeDecoration( color: const Color(0xFFFFF9DB), @@ -25,7 +25,7 @@ class InternetChecker extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ - SvgPicture.asset(ImagePaths.cloudOff,height: 25), + SvgPicture.asset(ImagePaths.cloudOff, height: 25), const SizedBox(width: 10), CText( "No internet connection detected", @@ -45,7 +45,7 @@ class InternetStatusProvider extends ChangeNotifier { bool _isDisconnected = false; /// Using debounce to avoid flickering when the connection is unstable - final _debounceDuration = const Duration(seconds: 2); + final _debounceDuration = Duration(seconds: Platform.isIOS ? 3 : 2); Timer? _debounceTimer; InternetStatusProvider() {