|
|
|
@ -265,9 +265,13 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FlutterNativeSplash.remove(); |
|
|
|
|
return ValueListenableBuilder( |
|
|
|
|
valueListenable: themeNotifier, |
|
|
|
|
builder: (final context, final nextcloudTheme, final child) => MaterialApp.router( |
|
|
|
|
return ResultBuilder<Capabilities?>( |
|
|
|
|
stream: activeAccountSnapshot.hasData |
|
|
|
|
? widget.accountsBloc.getCapabilitiesBloc(activeAccountSnapshot.data!).capabilities |
|
|
|
|
: null, |
|
|
|
|
builder: (final context, final capabilitiesSnapshot) { |
|
|
|
|
final nextcloudTheme = capabilitiesSnapshot.data?.capabilities.theming; |
|
|
|
|
return MaterialApp.router( |
|
|
|
|
localizationsDelegates: AppLocalizations.localizationsDelegates, |
|
|
|
|
supportedLocales: AppLocalizations.supportedLocales, |
|
|
|
|
themeMode: themeMode, |
|
|
|
@ -283,7 +287,8 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra
|
|
|
|
|
oledAsDark: themeOLEDAsDark, |
|
|
|
|
), |
|
|
|
|
routerDelegate: _routerDelegate, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|