Fix deep links (#207)

This commit is contained in:
Ian VanSchooten 2024-12-18 10:26:46 -05:00 committed by GitHub
parent c97732d1be
commit a449a650c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 35 additions and 39 deletions

View File

@ -94,11 +94,8 @@ class _AppState extends State<App> {
), ),
); );
return MaterialApp( return PlatformProvider(
theme: brightness == Brightness.light ? lightTheme : darkTheme, settings: PlatformSettingsData(iosUsesMaterialWidgets: true),
home: Scaffold(
body: PlatformProvider(
//initialPlatform: initialPlatform,
builder: (context) => PlatformApp( builder: (context) => PlatformApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
localizationsDelegates: <LocalizationsDelegate<dynamic>>[ localizationsDelegates: <LocalizationsDelegate<dynamic>>[
@ -110,6 +107,7 @@ class _AppState extends State<App> {
material: (_, __) { material: (_, __) {
return new MaterialAppData( return new MaterialAppData(
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark, themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
theme: brightness == Brightness.light ? lightTheme : darkTheme,
); );
}, },
cupertino: (_, __) => CupertinoAppData( cupertino: (_, __) => CupertinoAppData(
@ -133,8 +131,6 @@ class _AppState extends State<App> {
return null; return null;
}, },
), ),
),
),
); );
} }
} }