|
|
|
@ -102,36 +102,36 @@ class MeetingMineView extends GetView<MeetingMineController> { |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
// 统一头像显示逻辑:本地头像 > 网络头像 > 默认图标 |
|
|
|
Obx(() => Container( |
|
|
|
width: 50.w, |
|
|
|
height: 50.w, |
|
|
|
margin: EdgeInsets.only(right: 10.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.circular(50.w), |
|
|
|
), |
|
|
|
child: CircleAvatar( |
|
|
|
radius: 25.w, |
|
|
|
backgroundImage: controller |
|
|
|
.profileCtrl.localAvatar.value.isNotEmpty |
|
|
|
? FileImage( |
|
|
|
File(controller.profileCtrl.localAvatar.value)) |
|
|
|
: (controller |
|
|
|
.profileCtrl.userInfo.value.avatar.isNotEmpty |
|
|
|
? NetworkImage( |
|
|
|
controller.profileCtrl.userInfo.value.avatar) |
|
|
|
: null) as ImageProvider<Object>?, |
|
|
|
backgroundColor: Colors.grey[200], |
|
|
|
child: (controller.profileCtrl.localAvatar.value.isEmpty && |
|
|
|
controller |
|
|
|
.profileCtrl.userInfo.value.avatar.isEmpty) |
|
|
|
? Icon( |
|
|
|
Icons.person, |
|
|
|
size: 25.r, |
|
|
|
color: Colors.grey[600], |
|
|
|
) |
|
|
|
: null, |
|
|
|
), |
|
|
|
)), |
|
|
|
Obx( |
|
|
|
() => Container( |
|
|
|
width: 50.w, |
|
|
|
height: 50.w, |
|
|
|
margin: EdgeInsets.only(right: 10.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.circular(50.w), |
|
|
|
), |
|
|
|
child: CircleAvatar( |
|
|
|
radius: 25.w, |
|
|
|
backgroundImage: controller |
|
|
|
.profileCtrl.localAvatar.value.isNotEmpty |
|
|
|
? FileImage( |
|
|
|
File(controller.profileCtrl.localAvatar.value)) |
|
|
|
: (controller.profileCtrl.userInfo.value.avatar.isNotEmpty |
|
|
|
? NetworkImage( |
|
|
|
controller.profileCtrl.userInfo.value.avatar) |
|
|
|
: null) as ImageProvider<Object>?, |
|
|
|
backgroundColor: Colors.grey[200], |
|
|
|
child: (controller.profileCtrl.localAvatar.value.isEmpty && |
|
|
|
controller.profileCtrl.userInfo.value.avatar.isEmpty) |
|
|
|
? Icon( |
|
|
|
Icons.person, |
|
|
|
size: 25.r, |
|
|
|
color: Colors.grey[600], |
|
|
|
) |
|
|
|
: null, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
child: Obx( |
|
|
|
() => Text( |
|
|
|
@ -197,6 +197,7 @@ class MeetingMineView extends GetView<MeetingMineController> { |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2.w), |
|
|
|
margin: EdgeInsets.only(top: 8.w, bottom: 2.w), |
|
|
|
child: GridView.builder( |
|
|
|
controller: controller.scrollController, |
|
|
|
scrollDirection: Axis.horizontal, |
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( |
|
|
|
crossAxisCount: 7, |
|
|
|
|