revanced-manager/lib/ui/views/home/home_viewmodel.dart
Aunali321 769ff72f98
refactor: migrate to stacked architecture.
* feat: mostly done stacked architecture.

* refactor: migration to stacked architecture.
2022-08-06 17:43:28 +05:30

8 lines
371 B
Dart

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();
}