revanced-manager/lib/ui/views/settings/settings_viewmodel.dart

17 lines
482 B
Dart
Raw Normal View History

2022-08-12 20:07:16 +02:00
import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/app/app.router.dart';
2022-08-10 14:30:28 +02:00
import 'package:stacked/stacked.dart';
2022-08-12 20:07:16 +02:00
import 'package:stacked_services/stacked_services.dart';
2022-08-10 14:30:28 +02:00
class SettingsViewModel extends BaseViewModel {
2022-08-12 20:07:16 +02:00
final _navigationService = locator<NavigationService>();
2022-08-10 14:30:28 +02:00
void setLanguage(String language) {
notifyListeners();
}
2022-08-12 20:07:16 +02:00
void navigateToContributors() {
_navigationService.navigateTo(Routes.contributorsView);
}
2022-08-10 14:30:28 +02:00
}