opt: member info widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-08 18:27:17 +08:00
parent 20c1112a10
commit 71daa6df29

View File

@@ -306,7 +306,7 @@ class UserInfoCard extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
const SizedBox(width: 20), const SizedBox(width: 20),
if (!isOwner) if (!isOwner) ...[
IconButton.outlined( IconButton.outlined(
onPressed: () { onPressed: () {
if (GStorage.userInfo.get('userInfoCache') != null) { if (GStorage.userInfo.get('userInfoCache') != null) {
@@ -339,6 +339,7 @@ class UserInfoCard extends StatelessWidget {
), ),
), ),
const SizedBox(width: 10), const SizedBox(width: 10),
],
Expanded( Expanded(
child: FilledButton.tonal( child: FilledButton.tonal(
onPressed: onFollow, onPressed: onFollow,