feat: up status
This commit is contained in:
@ -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 =
|
||||
|
@ -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(),
|
||||
|
||||
/// 动态链接
|
||||
|
Reference in New Issue
Block a user