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:
parent
7362d55bc4
commit
62ad31837a
|
@ -898,7 +898,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
|
||||||
}else{
|
}else{
|
||||||
toSee = states[currentRangeValues.start.round()-1];
|
toSee = states[currentRangeValues.start.round()-1];
|
||||||
}
|
}
|
||||||
if (currentRangeValues.end.round() == 1){
|
if (currentRangeValues.end.round() <= 1){
|
||||||
toCompare = states.length >= 2 ? states.elementAtOrNull(2) : null;
|
toCompare = states.length >= 2 ? states.elementAtOrNull(2) : null;
|
||||||
}else{
|
}else{
|
||||||
toCompare = states[currentRangeValues.end.round()-1];
|
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 == 39),
|
||||||
snapshot.data!.summaries!.achievements.firstWhere((e) => e.k == 52),
|
snapshot.data!.summaries!.achievements.firstWhere((e) => e.k == 52),
|
||||||
] : [];
|
] : [];
|
||||||
|
qpAchievements.sort((a, b) => a.o! - b.o!);
|
||||||
return TweenAnimationBuilder(
|
return TweenAnimationBuilder(
|
||||||
duration: Durations.long4,
|
duration: Durations.long4,
|
||||||
tween: Tween<double>(begin: 0, end: 1),
|
tween: Tween<double>(begin: 0, end: 1),
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 324 KiB After Width: | Height: | Size: 330 KiB |
Loading…
Reference in New Issue