Fix deep links (#207)
This commit is contained in:
parent
c97732d1be
commit
a449a650c3
|
@ -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;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue