INNER CODE UNIT · Dart
of
flow-mn/flow · lib/main.dart:182
static FlowState of(BuildContext context) =>
context.findAncestorStateOfType<FlowState>()!;
}
class FlowState extends State<Flow> {
late final AppLifecycleListener _appLifeCycleListener;
Locale _locale = FlowLocalizations.supportedLocales.first;
ThemeMode _themeMode = ThemeMode.system;
ThemeFactory _themeFactory = ThemeFactory.fromThemeName(null);
ThemeMode get themeMode => _themeMode;
late bool _tempLock;
bool get useDarkTheme => (_themeMode == ThemeMode.system
? (PlatformDispatcher.instance.platformBrightness == Brightness.dark)