mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-02 06:44:25 +02:00
refactor: applies changes from formatter & linter
This commit is contained in:
parent
79116f9e67
commit
630b22e193
@ -128,7 +128,7 @@ class HomeView extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
child: model.showUpdatableApps
|
child: model.showUpdatableApps
|
||||||
? AvailableUpdatesCard()
|
? AvailableUpdatesCard()
|
||||||
: InstalledAppsCard(),
|
: const InstalledAppsCard(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -14,10 +14,10 @@ class NavigationView extends StatelessWidget {
|
|||||||
onViewModelReady: (model) => model.initialize(context),
|
onViewModelReady: (model) => model.initialize(context),
|
||||||
viewModelBuilder: () => locator<NavigationViewModel>(),
|
viewModelBuilder: () => locator<NavigationViewModel>(),
|
||||||
builder: (context, model, child) => WillPopScope(
|
builder: (context, model, child) => WillPopScope(
|
||||||
onWillPop: ()async{
|
onWillPop: () async {
|
||||||
if(model.currentIndex == 0){
|
if (model.currentIndex == 0) {
|
||||||
return true;
|
return true;
|
||||||
}else{
|
} else {
|
||||||
model.setIndex(0);
|
model.setIndex(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user