mod: home: show anonymous icon

Closes #81

opt: SliverPersistentHeaderDelegate

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-01 11:46:23 +08:00
parent dda0fc15c7
commit 144a9b604a
17 changed files with 101 additions and 93 deletions

View File

@@ -65,13 +65,13 @@ class _MinePageState extends State<MinePage> {
tapTargetSize:
MaterialTapTargetSize.shrinkWrap, // the '2023' part
),
tooltip: "${MineController.anonymity ? '退出' : '进入'}无痕模式",
tooltip: "${MineController.anonymity.value ? '退出' : '进入'}无痕模式",
onPressed: () {
MineController.onChangeAnonymity(context);
setState(() {});
},
icon: Icon(
MineController.anonymity
MineController.anonymity.value
? MdiIcons.incognito
: MdiIcons.incognitoOff,
size: 24,