Skip to content

Commit

Permalink
increase debounceDuration in ios.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jun 18, 2024
1 parent d27786e commit bf0ffdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/common/ui/custom/internet_checker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -25,7 +25,7 @@ class InternetChecker extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SvgPicture.asset(ImagePaths.cloudOff,height: 25),
SvgPicture.asset(ImagePaths.cloudOff, height: 25),
const SizedBox(width: 10),
CText(
"No internet connection detected",
Expand All @@ -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() {
Expand Down

0 comments on commit bf0ffdc

Please sign in to comment.