Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -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,
);
}
}