|
|
@ -44,11 +44,11 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
|
|
|
|
|
|
|
|
final userProvider = Provider.of<UserProvider>(Get.context!, listen: false);
|
|
|
|
final userProvider = Provider.of<UserProvider>(Get.context!, listen: false);
|
|
|
|
bool isVip = false;
|
|
|
|
bool isVip = false;
|
|
|
|
String? endDate;
|
|
|
|
DateTime? _lastTap;
|
|
|
|
late bool vle = false;
|
|
|
|
late bool vle = false;
|
|
|
|
final service = FlutterBackgroundService();
|
|
|
|
final service = FlutterBackgroundService();
|
|
|
|
final EasyRefreshController _easyRefreshController = EasyRefreshController();
|
|
|
|
final EasyRefreshController _easyRefreshController = EasyRefreshController();
|
|
|
|
|
|
|
|
String? endDate;
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
void dispose() {
|
|
|
|
_easyRefreshController.dispose();
|
|
|
|
_easyRefreshController.dispose();
|
|
|
@ -85,6 +85,7 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
|
|
|
|
return CloudScaffold(
|
|
|
|
return CloudScaffold(
|
|
|
|
systemStyle: const SystemUiOverlayStyle(
|
|
|
|
systemStyle: const SystemUiOverlayStyle(
|
|
|
|
statusBarIconBrightness: Brightness.dark,
|
|
|
|
statusBarIconBrightness: Brightness.dark,
|
|
|
@ -351,7 +352,6 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//内容
|
|
|
|
//内容
|
|
|
|
_getSwitch2() {
|
|
|
|
_getSwitch2() {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
@ -381,6 +381,7 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
// await prefs.setBool("kg", value);
|
|
|
|
// await prefs.setBool("kg", value);
|
|
|
|
// print("这是数据${prefs.getBool("kg")}");
|
|
|
|
// print("这是数据${prefs.getBool("kg")}");
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
|
|
|
|
if (isVip) {
|
|
|
|
if (isVip) {
|
|
|
|
vle = value;
|
|
|
|
vle = value;
|
|
|
|
// prefs.setBool("kg", vle);
|
|
|
|
// prefs.setBool("kg", vle);
|
|
|
@ -414,7 +415,8 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
BotToast.showText(text: "还没有开通会员,不可使用该功能");
|
|
|
|
BotToast.showText(text: "还没有开通会员,不可使用该功能");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|