Check OS permission and reveal child toggles in notification settings

This commit is contained in:
zjs81 committed 2026-11-21 20:23:00 -07:00
1 parent 9ac915bdf2
commit eafc4f1152
6 files changed
+1024 -184

No files matched your search

+6 -1
View File
@@ -14,7 +14,12 @@ class PlatformInfo {
static bool get isChrome => isWeb && BrowserDetection.isChrome;
/// Whether the app is running on Android.
static bool get isAndroid => !kIsWeb && Platform.isAndroid;
static bool get isAndroid =>
debugIsAndroidOverride ?? (!kIsWeb && Platform.isAndroid);
/// Lets widget tests exercise Android-only UI on a non-Android test host.
@visibleForTesting
static bool? debugIsAndroidOverride;
/// Whether the app is running on iOS.
static bool get isIOS => !kIsWeb && Platform.isIOS;