mod: 隐藏签名

This commit is contained in:
guozhigq
2023-09-10 14:52:00 +08:00
parent 3665d6a0f6
commit e631ca04a0

View File

@ -234,54 +234,54 @@ class _MemberPageState extends State<MemberPage>
// ] // ]
], ],
), ),
if (_memberController.memberInfo.value // if (_memberController.memberInfo.value
.official!['title'] != // .official!['title'] !=
'') ...[ // '') ...[
const SizedBox(height: 6), // const SizedBox(height: 6),
Text.rich( // Text.rich(
maxLines: 2, // maxLines: 2,
TextSpan( // TextSpan(
text: _memberController // text: _memberController
.memberInfo // .memberInfo
.value // .value
.official!['role'] == // .official!['role'] ==
1 // 1
? '个人认证:' // ? '个人认证:'
: '企业认证:', // : '企业认证:',
style: TextStyle( // style: TextStyle(
color: Theme.of(context) // color: Theme.of(context)
.primaryColor, // .primaryColor,
), // ),
children: [ // children: [
TextSpan( // TextSpan(
text: _memberController // text: _memberController
.memberInfo // .memberInfo
.value // .value
.official!['title'], // .official!['title'],
), // ),
], // ],
), // ),
softWrap: true, // softWrap: true,
), // ),
], // ],
const SizedBox(height: 4), // const SizedBox(height: 4),
if (_memberController // if (_memberController
.memberInfo.value.sign != // .memberInfo.value.sign !=
'') // '')
SelectableRegion( // SelectableRegion(
magnifierConfiguration: // magnifierConfiguration:
const TextMagnifierConfiguration(), // const TextMagnifierConfiguration(),
focusNode: FocusNode(), // focusNode: FocusNode(),
selectionControls: // selectionControls:
MaterialTextSelectionControls(), // MaterialTextSelectionControls(),
child: Text( // child: Text(
_memberController // _memberController
.memberInfo.value.sign!, // .memberInfo.value.sign!,
textAlign: TextAlign.left, // textAlign: TextAlign.left,
maxLines: 2, // maxLines: 2,
overflow: TextOverflow.ellipsis, // overflow: TextOverflow.ellipsis,
), // ),
), // ),
], ],
), ),
], ],