first commit
This commit is contained in:
27
lib/app/core/custom_base_view_model.dart
Executable file
27
lib/app/core/custom_base_view_model.dart
Executable file
@ -0,0 +1,27 @@
|
||||
import 'package:stacked/stacked.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
|
||||
import '../../services/http_services.dart';
|
||||
import '../../services/my_easyloading.dart';
|
||||
import '../../services/my_notification.dart';
|
||||
import '../../services/my_preferences.dart';
|
||||
import '../../services/my_socket_io_client.dart';
|
||||
import '../../services/other_function.dart';
|
||||
import '../app.locator.dart';
|
||||
|
||||
class CustomBaseViewModel extends BaseViewModel {
|
||||
final dialogService = locator<DialogService>();
|
||||
final navigationService = locator<NavigationService>();
|
||||
final bottomSheetService = locator<BottomSheetService>();
|
||||
final snackbarService = locator<SnackbarService>();
|
||||
final otherFunction = locator<OtherFunction>();
|
||||
final socketIoClient = locator<MySocketIoClient>();
|
||||
final httpService = locator<MyHttpServices>();
|
||||
final easyLoading = locator<MyEasyLoading>();
|
||||
final myNotification = locator<MyNotification>();
|
||||
final mySharedPrefs = locator<MySharedPrefs>();
|
||||
|
||||
void back() {
|
||||
navigationService.back();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user