fix: optimization for iOS #30
1 changed files with 10 additions and 9 deletions
|
@ -79,21 +79,22 @@ class MyApp extends StatelessWidget {
|
||||||
: lightColorScheme,
|
: lightColorScheme,
|
||||||
),
|
),
|
||||||
child: CupertinoApp(
|
child: CupertinoApp(
|
||||||
theme: CupertinoThemeData(
|
|
||||||
textTheme: CupertinoTextThemeData(
|
|
||||||
primaryColor:
|
|
||||||
((MediaQuery.of(context).platformBrightness ==
|
|
||||||
Brightness.dark)
|
|
||||||
? darkColorScheme
|
|
||||||
: lightColorScheme)
|
|
||||||
.onPrimary)),
|
|
||||||
localizationsDelegates: const [
|
localizationsDelegates: const [
|
||||||
AppLocalizations.delegate,
|
AppLocalizations.delegate,
|
||||||
...GlobalMaterialLocalizations.delegates,
|
...GlobalMaterialLocalizations.delegates,
|
||||||
...GlobalCupertinoLocalizations.delegates,
|
...GlobalCupertinoLocalizations.delegates,
|
||||||
],
|
],
|
||||||
title: 'Prašule',
|
title: 'Prašule',
|
||||||
home: HomeView(),
|
home: DefaultTextStyle(
|
||||||
|
style: TextStyle(
|
||||||
|
color: ((MediaQuery.of(context).platformBrightness ==
|
||||||
|
Brightness.dark)
|
||||||
|
? darkColorScheme
|
||||||
|
: lightColorScheme)
|
||||||
|
.onPrimary,
|
||||||
|
),
|
||||||
|
child: const HomeView(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue