fix: ios color?

This commit is contained in:
Matyáš Caras 2024-01-29 23:31:11 +01:00
parent 94b387db43
commit d46d9c0ca2
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6

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(),
),
),
);
}