Merge branch 'release_hyx' into release
This commit is contained in:
commit
e30530f3d5
@ -103,7 +103,7 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
height: 15.h,
|
||||
height: 10.h,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 24.w),
|
||||
@ -114,20 +114,16 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 35.h,
|
||||
height: 20.h,
|
||||
),
|
||||
xhjInfoView(),
|
||||
SizedBox(
|
||||
height: 35.h,
|
||||
height: 20.h,
|
||||
),
|
||||
labelText(
|
||||
img: 'images/icon_slider_horizontal.png',
|
||||
text: '功能'.tr,
|
||||
child: bottomWidget()),
|
||||
labelText(
|
||||
img: 'images/icon_puzzlepiece_extension.png',
|
||||
text: '配件'.tr,
|
||||
child: attachmentWidget()),
|
||||
btnText(
|
||||
img: 'images/main/icon_main_set.png',
|
||||
text: TranslationLoader.lanKeys!.set!.tr,
|
||||
@ -141,6 +137,10 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
'isOnlyOneData': state.isOnlyOneData
|
||||
});
|
||||
}),
|
||||
labelText(
|
||||
img: 'images/icon_puzzlepiece_extension.png',
|
||||
text: '配件'.tr,
|
||||
child: attachmentWidget()),
|
||||
],
|
||||
),
|
||||
),
|
||||
@ -208,7 +208,7 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
{required String img, required String text, required Widget child}) {
|
||||
return Container(
|
||||
margin: EdgeInsets.symmetric(horizontal: 0.05.sw, vertical: 15.h),
|
||||
padding: EdgeInsets.symmetric(horizontal: 0.05.sw, vertical: 20.h),
|
||||
padding: EdgeInsets.symmetric(horizontal: 0.05.sw, vertical: 15.h),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(16.r),
|
||||
@ -900,7 +900,7 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
child: GridView.count(
|
||||
crossAxisCount: 4,
|
||||
// childAspectRatio: 3,
|
||||
crossAxisSpacing: 20.w,
|
||||
crossAxisSpacing: 0.w,
|
||||
mainAxisSpacing: 0.h,
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
@ -946,8 +946,8 @@ class _LockDetailPageState extends State<LockDetailPage>
|
||||
child: GridView.count(
|
||||
crossAxisCount: 4,
|
||||
// childAspectRatio: 3,
|
||||
crossAxisSpacing: 25.h,
|
||||
mainAxisSpacing: 5.h,
|
||||
crossAxisSpacing: 0.h,
|
||||
mainAxisSpacing: 0.h,
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
children: getBottomWidget()),
|
||||
|
||||
@ -42,9 +42,10 @@ class LockMainLogic extends BaseGetXController {
|
||||
}
|
||||
|
||||
void loadMainDataLogic(LockListInfoGroupEntity entity) {
|
||||
final bool every = entity.groupList!.every((GroupList list) =>
|
||||
(list.lockList ?? <LockListInfoItemEntity>[]).isEmpty);
|
||||
if (entity.groupList!.isEmpty || every) {
|
||||
final bool every = entity.groupList?.every((GroupList list) =>
|
||||
(list.lockList ?? <LockListInfoItemEntity>[]).isEmpty) ??
|
||||
false;
|
||||
if ((entity.groupList??<GroupList>[]).isEmpty || every) {
|
||||
state.dataLength.value = 0;
|
||||
} else if (entity.groupList!.length == 1) {
|
||||
final GroupList groupList = entity.groupList![0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user