Range slider fix + achievements.png update

osk suggests to sort achievements by their `o` field, need to think about it.
This commit is contained in:
dan63047 2025-01-06 01:00:40 +03:00
parent 7362d55bc4
commit 62ad31837a
2 changed files with 2 additions and 1 deletions

View File

@ -898,7 +898,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
}else{
toSee = states[currentRangeValues.start.round()-1];
}
if (currentRangeValues.end.round() == 1){
if (currentRangeValues.end.round() <= 1){
toCompare = states.length >= 2 ? states.elementAtOrNull(2) : null;
}else{
toCompare = states[currentRangeValues.end.round()-1];
@ -1276,6 +1276,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
snapshot.data!.summaries!.achievements.firstWhere((e) => e.k == 39),
snapshot.data!.summaries!.achievements.firstWhere((e) => e.k == 52),
] : [];
qpAchievements.sort((a, b) => a.o! - b.o!);
return TweenAnimationBuilder(
duration: Durations.long4,
tween: Tween<double>(begin: 0, end: 1),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 330 KiB