From d46d9c0ca2bfb0fb04c7eaa30143ee659d141f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Mon, 29 Jan 2024 23:31:11 +0100 Subject: [PATCH] fix: ios color? --- lib/main.dart | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index bdf37d7..99c71bc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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(), + ), ), ); }