You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
983 B

import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/provider/old_age_provider.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/provider/data_provider.dart';
import 'package:aku_new_community/provider/user_provider.dart';
class UserTool {
static UserProvider get userProvider =>
Provider.of<UserProvider>(Get.context!, listen: false);
static AppProvider get appProvider =>
Provider.of<AppProvider>(Get.context!, listen: false);
static DataProvider get dataProvider =>
Provider.of<DataProvider>(Get.context!, listen: false);
static MyAppStyle get myAppStyle =>
Theme.of(Get.context!).extension<MyAppStyle>()!;
static OldAgeProvider get oldAgeProvider =>
Provider.of<OldAgeProvider>(Get.context!, listen: false);
UserTool();
}