chrome required screen

This commit is contained in:
Ben Allfree
2026-02-22 07:40:40 -08:00
parent b5e47ce44f
commit 5676cbd84e
37 changed files with 268 additions and 1 deletions
+4
View File
@@ -1,5 +1,6 @@
import 'package:flutter/foundation.dart';
import 'dart:io' show Platform;
import 'browser_detection.dart';
/// Utility class to safely check the current platform across web and native.
///
@@ -9,6 +10,9 @@ class PlatformInfo {
/// Whether the app is running in a web browser.
static bool get isWeb => kIsWeb;
/// Whether the app is running in the Chrome browser (only relevant if [isWeb] is true).
static bool get isChrome => isWeb && BrowserDetection.isChrome;
/// Whether the app is running on Android.
static bool get isAndroid => !kIsWeb && Platform.isAndroid;