mgs_connectivity_check 1.2.5
mgs_connectivity_check: ^1.2.5 copied to clipboard
A customizable Flutter connectivity checker with internet validation and automatic no-internet dialog support.
1.2.5 #
Fixed #
- iOS — Close App button (
enableCloseAppButton):SystemNavigator.pop()is a no-op on iOS (Apple prohibits programmatic app exit). The button is now automatically hidden on iOS. No code changes needed — it simply won't appear on iOS devices. - iOS — Open Settings button (
enableOpenSettingsButton):AppSettingsType.wirelessis not supported on iOS. The button now opensAppSettingsType.settings(the app's own Settings page) on iOS/desktop/web, and still opens Wi-Fi settings (AppSettingsType.wireless) on Android.
Changed #
- Open Settings button now uses
ElevatedButton(same widget and style as the Retry button) instead ofOutlinedButton. ExistingopenSettingsButtonColor,openSettingsButtonTextStyle,buttonHeight,buttonElevation, andbuttonBorderRadiusoptions all continue to work — no implementation changes required. - Close App button now respects
buttonElevationandbuttonBorderRadius, consistent with the Retry button style. - Close App button on desktop (Windows/Linux/macOS) now uses
exit(0)instead ofSystemNavigator.pop()for proper process termination.
Migration #
No breaking changes. All existing MgsDialogStyle and MgsBackOnlineStyle properties are unchanged. Upgrading requires no code modifications.
