diff --git a/lib/views/home/statistic/statistic_details/statistic_details.dart b/lib/views/home/statistic/statistic_details/statistic_details.dart index b8dd16f..ae78195 100644 --- a/lib/views/home/statistic/statistic_details/statistic_details.dart +++ b/lib/views/home/statistic/statistic_details/statistic_details.dart @@ -256,7 +256,7 @@ class _StatisticDetailsState extends State { if (state.data!.dp == 0) { return null; } - if (state.data!.dt == 'low') { + if (state.data!.dt == 'high') { return Theme.of(context).colorScheme.success; } else { return Theme.of(context).colorScheme.error; @@ -267,7 +267,7 @@ class _StatisticDetailsState extends State { if (state.data!.dp == 0) { return null; } - if (state.data!.dt == 'low') { + if (state.data!.dt == 'high') { return DidvanIcons.angle_up_regular; } else { return DidvanIcons.angle_down_regular; diff --git a/lib/views/home/statistic/widgets/statistic_overview.dart b/lib/views/home/statistic/widgets/statistic_overview.dart index cfa585e..acb392b 100644 --- a/lib/views/home/statistic/widgets/statistic_overview.dart +++ b/lib/views/home/statistic/widgets/statistic_overview.dart @@ -18,7 +18,7 @@ class StatisticOverview extends StatelessWidget { required this.onMarkChanged, }) : super(key: key); - Color _diffColor(context) => statistic.data.dt == 'low' + Color _diffColor(context) => statistic.data.dt == 'high' ? Theme.of(context).colorScheme.success : Theme.of(context).colorScheme.error; @@ -88,7 +88,7 @@ class StatisticOverview extends StatelessWidget { const Spacer(), if (_hasDiff) Icon( - statistic.data.dt == 'low' + statistic.data.dt == 'high' ? DidvanIcons.angle_up_regular : DidvanIcons.angle_down_regular, size: 18,