mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 20:57:36 +02:00
refactor: migrate to stacked architecture.
* feat: mostly done stacked architecture. * refactor: migration to stacked architecture.
This commit is contained in:
8
lib/ui/views/home/home_viewmodel.dart
Normal file
8
lib/ui/views/home/home_viewmodel.dart
Normal file
@ -0,0 +1,8 @@
|
||||
import 'package:revanced_manager_flutter/app/app.locator.dart';
|
||||
import 'package:revanced_manager_flutter/services/manager_api.dart';
|
||||
import 'package:stacked/stacked.dart';
|
||||
|
||||
class HomeViewModel extends BaseViewModel {
|
||||
Future downloadPatches() => locator<ManagerAPI>().downloadPatches();
|
||||
Future downloadIntegrations() => locator<ManagerAPI>().downloadIntegrations();
|
||||
}
|
Reference in New Issue
Block a user