fix: optimization for iOS #30

Merged
hernik merged 8 commits from dev-ios into dev 2024-01-29 23:51:25 +01:00
Showing only changes of commit d46d9c0ca2 - Show all commits

View file

@ -79,21 +79,22 @@ class MyApp extends StatelessWidget {
: lightColorScheme,
),
child: CupertinoApp(
theme: CupertinoThemeData(
textTheme: CupertinoTextThemeData(
primaryColor:
((MediaQuery.of(context).platformBrightness ==
Brightness.dark)
? darkColorScheme
: lightColorScheme)
.onPrimary)),
localizationsDelegates: const [
AppLocalizations.delegate,
...GlobalMaterialLocalizations.delegates,
...GlobalCupertinoLocalizations.delegates,
],
title: 'Prašule',
home: HomeView(),
home: DefaultTextStyle(
style: TextStyle(
color: ((MediaQuery.of(context).platformBrightness ==
Brightness.dark)
? darkColorScheme
: lightColorScheme)
.onPrimary,
),
child: const HomeView(),
),
),
);
}