bug fixes
This commit is contained in:
parent
fc73d5452c
commit
1bd33a834d
|
|
@ -256,7 +256,7 @@ class _StatisticDetailsState extends State<StatisticDetails> {
|
|||
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<StatisticDetails> {
|
|||
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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue