diff --git a/lib/common/ui/custom/internet_checker.dart b/lib/common/ui/custom/internet_checker.dart index dbc37afe92..8b4344bdb4 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() {