opt account

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-10 11:42:50 +08:00
parent 5f77a8aa19
commit 4c758bb1a3
51 changed files with 342 additions and 299 deletions

View File

@@ -30,7 +30,7 @@ class _UpPanelState extends State<UpPanel> {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
if (!widget.dynamicsController.isLogin.value) {
if (!widget.dynamicsController.accountService.isLogin.value) {
return const SizedBox.shrink();
}
return CustomScrollView(
@@ -102,12 +102,14 @@ class _UpPanelState extends State<UpPanel> {
child: upItemBuild(theme, UpItem(face: '', uname: '全部动态', mid: -1)),
),
SliverToBoxAdapter(
child: upItemBuild(
theme,
UpItem(
uname: '',
face: widget.dynamicsController.face,
mid: widget.dynamicsController.ownerMid,
child: Obx(
() => upItemBuild(
theme,
UpItem(
uname: '',
face: widget.dynamicsController.accountService.face.value,
mid: widget.dynamicsController.accountService.mid,
),
),
),
),