fix: 用户昵称溢出

This commit is contained in:
guozhigq
2023-07-26 15:47:00 +08:00
parent 54d003fdb1
commit fdbf494523
3 changed files with 9 additions and 3 deletions

View File

@ -108,16 +108,19 @@ class _MemberPageState extends State<MemberPage>
const SizedBox(height: 14),
Row(
children: [
Text(
Expanded(
child: Text(
_memberController
.memberInfo.value.name!,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.bodyLarge!
.copyWith(
fontWeight:
FontWeight.bold),
),
)),
const SizedBox(width: 2),
if (_memberController
.memberInfo.value.sex ==