mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -23,9 +23,10 @@ class MineController extends GetxController {
|
||||
AccountService accountService = Get.find<AccountService>();
|
||||
|
||||
Rx<ThemeType> themeType = ThemeType.system.obs;
|
||||
static RxBool anonymity = (Accounts.account.isNotEmpty &&
|
||||
!Accounts.get(AccountType.heartbeat).isLogin)
|
||||
.obs;
|
||||
static RxBool anonymity =
|
||||
(Accounts.account.isNotEmpty &&
|
||||
!Accounts.get(AccountType.heartbeat).isLogin)
|
||||
.obs;
|
||||
ThemeType get nextThemeType =>
|
||||
ThemeType.values[(themeType.value.index + 1) % ThemeType.values.length];
|
||||
|
||||
@@ -42,8 +43,10 @@ class MineController extends GetxController {
|
||||
if (!accountService.isLogin.value || longPress) {
|
||||
Get.toNamed('/loginPage', preventDuplicates: false);
|
||||
} else {
|
||||
Get.toNamed('/member?mid=${userInfo.value.mid}',
|
||||
preventDuplicates: false);
|
||||
Get.toNamed(
|
||||
'/member?mid=${userInfo.value.mid}',
|
||||
preventDuplicates: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,8 +102,9 @@ class MineController extends GetxController {
|
||||
alignment: Alignment.bottomCenter,
|
||||
builder: (context) {
|
||||
final theme = Theme.of(context);
|
||||
final style =
|
||||
TextStyle(color: theme.colorScheme.onSecondaryContainer);
|
||||
final style = TextStyle(
|
||||
color: theme.colorScheme.onSecondaryContainer,
|
||||
);
|
||||
return ColoredBox(
|
||||
color: theme.colorScheme.secondaryContainer,
|
||||
child: Padding(
|
||||
@@ -118,7 +122,7 @@ class MineController extends GetxController {
|
||||
children: <Widget>[
|
||||
const Icon(MdiIcons.incognito, size: 20),
|
||||
const SizedBox(width: 10),
|
||||
Text('已进入无痕模式', style: theme.textTheme.titleMedium)
|
||||
Text('已进入无痕模式', style: theme.textTheme.titleMedium),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
@@ -226,7 +230,9 @@ class MineController extends GetxController {
|
||||
SmartDialog.showToast('账号未登录');
|
||||
return;
|
||||
}
|
||||
Get.toNamed('/memberDynamics?mid=${userInfo.value.mid}',
|
||||
preventDuplicates: false);
|
||||
Get.toNamed(
|
||||
'/memberDynamics?mid=${userInfo.value.mid}',
|
||||
preventDuplicates: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user