Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 22:31:25 +08:00
parent 51163dd985
commit 14890d342a
3 changed files with 12 additions and 5 deletions

View File

@@ -880,11 +880,17 @@ class UserInfoCard extends StatelessWidget {
),
];
if (children.isNotEmpty) {
Widget child;
if (children.length == 1) {
child = children.first;
} else {
child = isPortrait
? Row(mainAxisAlignment: .spaceBetween, children: children)
: Wrap(spacing: 10, runSpacing: 6, children: children);
}
return Padding(
padding: const .only(left: 20, right: 20, top: 6),
child: isPortrait
? Row(mainAxisAlignment: .spaceBetween, children: children)
: Wrap(spacing: 10, runSpacing: 6, children: children),
child: child,
);
}
return null;