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.
16 lines
511 B
16 lines
511 B
4 years ago
|
import 'package:aku_community_manager/provider/app_provider.dart';
|
||
|
import 'package:aku_community_manager/provider/user_provider.dart';
|
||
|
import 'package:get/get.dart';
|
||
|
import 'package:provider/provider.dart';
|
||
|
///获取应用或用户状态
|
||
|
class UserTool {
|
||
|
///应用信息
|
||
|
static AppProvider get appProvider =>
|
||
|
Provider.of<AppProvider>(Get.context, listen: false);
|
||
|
///用户信息
|
||
|
static UserProvider get userProvider =>
|
||
|
Provider.of<UserProvider>(Get.context, listen: false);
|
||
|
|
||
|
UserTool();
|
||
|
}
|