fix: optimization for iOS #30

Merged
hernik merged 8 commits from dev-ios into dev 2024-01-29 23:51:25 +01:00
2 changed files with 13 additions and 12 deletions
Showing only changes of commit ca56000667 - Show all commits

View file

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

View file

@ -318,6 +318,11 @@ class _HomeViewState extends State<HomeView> {
TextSpan( TextSpan(
text: AppLocalizations.of(context) text: AppLocalizations.of(context)
.balanceStatusA, .balanceStatusA,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.onBackground,
),
), ),
TextSpan( TextSpan(
style: TextStyle( style: TextStyle(
@ -363,6 +368,11 @@ class _HomeViewState extends State<HomeView> {
TextSpan( TextSpan(
text: AppLocalizations.of(context) text: AppLocalizations.of(context)
.balanceStatusB, .balanceStatusB,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.onBackground,
),
), ),
], ],
), ),