feat: up status

This commit is contained in:
guozhigq
2024-10-26 00:28:08 +08:00
parent 0ce77d421f
commit 0d55116f24
2 changed files with 22 additions and 0 deletions

View File

@ -8,6 +8,7 @@ class MemberInfoModel {
this.level,
this.isFollowed,
this.topPhoto,
this.silence,
this.official,
this.vip,
this.liveRoom,
@ -21,6 +22,7 @@ class MemberInfoModel {
int? level;
bool? isFollowed;
String? topPhoto;
int? silence;
Map? official;
Vip? vip;
LiveRoom? liveRoom;
@ -34,6 +36,7 @@ class MemberInfoModel {
level = json['level'];
isFollowed = json['is_followed'];
topPhoto = json['top_photo'];
silence = json['silence'] ?? 0;
official = json['official'];
vip = Vip.fromJson(json['vip']);
liveRoom =

View File

@ -156,6 +156,25 @@ class _MemberPageState extends State<MemberPage>
bottom: MediaQuery.of(context).padding.bottom + 20,
),
children: [
Obx(() {
Rx<MemberInfoModel> memberInfo = _memberController.memberInfo;
return memberInfo.value.silence != null &&
memberInfo.value.silence! == 1
? Container(
width: double.infinity,
padding: const EdgeInsets.only(top: 10, bottom: 10),
color: Theme.of(context).colorScheme.errorContainer,
child: Text(
'该账号封禁中',
textAlign: TextAlign.center,
style: TextStyle(
color: Theme.of(context).colorScheme.onErrorContainer,
fontSize: 16,
),
),
)
: const SizedBox();
}),
profileWidget(),
/// 动态链接