mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 06:36:44 +02:00
Dart fix + Flutter upgrade
This commit is contained in:
@ -229,7 +229,7 @@ class _HomePageState extends State<HomePage> {
|
||||
});
|
||||
}
|
||||
|
||||
setIsReversing(int targetIndex) {
|
||||
void setIsReversing(int targetIndex) {
|
||||
bool reversing =
|
||||
selectedIndexHistory.isNotEmpty &&
|
||||
selectedIndexHistory.last > targetIndex;
|
||||
@ -238,7 +238,7 @@ class _HomePageState extends State<HomePage> {
|
||||
});
|
||||
}
|
||||
|
||||
switchToPage(int index) async {
|
||||
Future<void> switchToPage(int index) async {
|
||||
setIsReversing(index);
|
||||
if (index == 0) {
|
||||
while ((pages[0].widget.key as GlobalKey<AppsPageState>).currentState !=
|
||||
@ -340,8 +340,8 @@ class _HomePageState extends State<HomePage> {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return !(pages[0].widget.key as GlobalKey<AppsPageState>).currentState
|
||||
?.clearSelected();
|
||||
return !(pages[0].widget.key as GlobalKey<AppsPageState>).currentState!
|
||||
.clearSelected();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user