fix: remove deprecated code
This commit is contained in:
parent
58dd06f39f
commit
5cbb9a12dc
5 changed files with 10 additions and 13 deletions
|
@ -20,11 +20,9 @@ const lightColorScheme = ColorScheme(
|
||||||
errorContainer: Color(0xFFFFDAD6),
|
errorContainer: Color(0xFFFFDAD6),
|
||||||
onError: Color(0xFFFFFFFF),
|
onError: Color(0xFFFFFFFF),
|
||||||
onErrorContainer: Color(0xFF410002),
|
onErrorContainer: Color(0xFF410002),
|
||||||
background: Color(0xFFFBFDF8),
|
|
||||||
onBackground: Color(0xFF191C19),
|
|
||||||
surface: Color(0xFFFBFDF8),
|
surface: Color(0xFFFBFDF8),
|
||||||
onSurface: Color(0xFF191C19),
|
onSurface: Color(0xFF191C19),
|
||||||
surfaceVariant: Color(0xFFDCE5DB),
|
surfaceContainerHighest: Color(0xFFDCE5DB),
|
||||||
onSurfaceVariant: Color(0xFF414942),
|
onSurfaceVariant: Color(0xFF414942),
|
||||||
outline: Color(0xFF717971),
|
outline: Color(0xFF717971),
|
||||||
onInverseSurface: Color(0xFFF0F1EC),
|
onInverseSurface: Color(0xFFF0F1EC),
|
||||||
|
@ -54,11 +52,9 @@ const darkColorScheme = ColorScheme(
|
||||||
errorContainer: Color(0xFF93000A),
|
errorContainer: Color(0xFF93000A),
|
||||||
onError: Color(0xFF690005),
|
onError: Color(0xFF690005),
|
||||||
onErrorContainer: Color(0xFFFFDAD6),
|
onErrorContainer: Color(0xFFFFDAD6),
|
||||||
background: Color(0xFF191C19),
|
|
||||||
onBackground: Color(0xFFE1E3DE),
|
|
||||||
surface: Color(0xFF191C19),
|
surface: Color(0xFF191C19),
|
||||||
onSurface: Color(0xFFE1E3DE),
|
onSurface: Color(0xFFE1E3DE),
|
||||||
surfaceVariant: Color(0xFF414942),
|
surfaceContainerHighest: Color(0xFF414942),
|
||||||
onSurfaceVariant: Color(0xFFC0C9BF),
|
onSurfaceVariant: Color(0xFFC0C9BF),
|
||||||
outline: Color(0xFF8B938A),
|
outline: Color(0xFF8B938A),
|
||||||
onInverseSurface: Color(0xFF191C19),
|
onInverseSurface: Color(0xFF191C19),
|
||||||
|
|
|
@ -29,6 +29,7 @@ class CreateSingleEntryView extends StatefulWidget {
|
||||||
/// Is null unless we are editing an existing entry
|
/// Is null unless we are editing an existing entry
|
||||||
final WalletSingleEntry? editEntry;
|
final WalletSingleEntry? editEntry;
|
||||||
|
|
||||||
|
/// Locale as set on user's system
|
||||||
final String locale;
|
final String locale;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -191,10 +192,10 @@ class _CreateSingleEntryViewState extends State<CreateSingleEntryView> {
|
||||||
Text(AppLocalizations.of(context).date),
|
Text(AppLocalizations.of(context).date),
|
||||||
PlatformButton(
|
PlatformButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor: MaterialStateProperty.all(
|
backgroundColor: WidgetStateProperty.all(
|
||||||
Theme.of(context).colorScheme.primary,
|
Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
foregroundColor: MaterialStateProperty.all(
|
foregroundColor: WidgetStateProperty.all(
|
||||||
Theme.of(context).colorScheme.onPrimary,
|
Theme.of(context).colorScheme.onPrimary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -355,7 +355,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.onBackground,
|
.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
|
@ -405,7 +405,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.onBackground,
|
.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -590,7 +590,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.background
|
.surface
|
||||||
.calculateTextColor(),
|
.calculateTextColor(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -37,7 +37,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
|
||||||
body: SettingsList(
|
body: SettingsList(
|
||||||
applicationType: ApplicationType.both,
|
applicationType: ApplicationType.both,
|
||||||
darkTheme: SettingsThemeData(
|
darkTheme: SettingsThemeData(
|
||||||
settingsListBackground: Theme.of(context).colorScheme.background,
|
settingsListBackground: Theme.of(context).colorScheme.surface,
|
||||||
titleTextColor: Theme.of(context).colorScheme.primary,
|
titleTextColor: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
sections: [
|
sections: [
|
||||||
|
|
|
@ -42,7 +42,7 @@ class _SettingsViewState extends State<SettingsView> {
|
||||||
body: SettingsList(
|
body: SettingsList(
|
||||||
applicationType: ApplicationType.both,
|
applicationType: ApplicationType.both,
|
||||||
darkTheme: SettingsThemeData(
|
darkTheme: SettingsThemeData(
|
||||||
settingsListBackground: Theme.of(context).colorScheme.background,
|
settingsListBackground: Theme.of(context).colorScheme.surface,
|
||||||
titleTextColor: Theme.of(context).colorScheme.primary,
|
titleTextColor: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
sections: [
|
sections: [
|
||||||
|
|
Loading…
Reference in a new issue