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