fix:折算设置
This commit is contained in:
@@ -337,13 +337,15 @@ class SettingsPage extends HookConsumerWidget {
|
||||
_ChoiceButton(
|
||||
label: PriceColorMode.redUpGreenDown.label,
|
||||
selected: current == PriceColorMode.redUpGreenDown,
|
||||
onTap: () => Navigator.of(ctx).pop(PriceColorMode.redUpGreenDown),
|
||||
onTap: () =>
|
||||
Navigator.of(ctx).pop(PriceColorMode.redUpGreenDown),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
_ChoiceButton(
|
||||
label: PriceColorMode.greenUpRedDown.label,
|
||||
selected: current == PriceColorMode.greenUpRedDown,
|
||||
onTap: () => Navigator.of(ctx).pop(PriceColorMode.greenUpRedDown),
|
||||
onTap: () =>
|
||||
Navigator.of(ctx).pop(PriceColorMode.greenUpRedDown),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -351,9 +353,9 @@ class SettingsPage extends HookConsumerWidget {
|
||||
),
|
||||
);
|
||||
if (selected != null && context.mounted) {
|
||||
ref.read(profileSettingsControllerProvider.notifier).setPriceColorMode(
|
||||
selected,
|
||||
);
|
||||
ref
|
||||
.read(profileSettingsControllerProvider.notifier)
|
||||
.setPriceColorMode(selected);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -779,7 +781,7 @@ class _ThemeSegmentCard extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final cs = ShadTheme.of(context).colorScheme;
|
||||
final options = <(ThemeMode, String, IconData)>[
|
||||
(ThemeMode.system, '跟随系统', Icons.brightness_auto_outlined),
|
||||
(ThemeMode.system, '系统主题', Icons.brightness_auto_outlined),
|
||||
(ThemeMode.light, '浅色', Icons.light_mode_outlined),
|
||||
(ThemeMode.dark, '深色', Icons.dark_mode_outlined),
|
||||
];
|
||||
@@ -1081,9 +1083,7 @@ class _ChoiceButton extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: selected ? cs.primary : cs.secondary,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: selected ? cs.primary : cs.border,
|
||||
),
|
||||
border: Border.all(color: selected ? cs.primary : cs.border),
|
||||
),
|
||||
child: Text(
|
||||
label,
|
||||
@@ -1182,10 +1182,7 @@ class _ValueRow extends StatelessWidget {
|
||||
style: TextStyle(fontSize: 15, color: cs.foreground),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
value,
|
||||
style: TextStyle(fontSize: 13, color: cs.mutedForeground),
|
||||
),
|
||||
Text(value, style: TextStyle(fontSize: 13, color: cs.mutedForeground)),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user