|
|
@@ -140,6 +140,12 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer> |
|
|
|
// hasCategory = true; |
|
|
|
// } |
|
|
|
|
|
|
|
// 如果有左上角标题 |
|
|
|
double moduleTitleHeight = 22 + 10.0; |
|
|
|
if (!EmptyUtil.isEmpty(model?.moduleTitleName)) { |
|
|
|
totalHeight = totalHeight + moduleTitleHeight; |
|
|
|
} |
|
|
|
|
|
|
|
return Container( |
|
|
|
margin: EdgeInsets.only(top: double.tryParse(model?.topMargin), |
|
|
|
left: ParseUtil.stringParseDouble(model?.leftRightMargin), |
|
|
@@ -161,34 +167,46 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer> |
|
|
|
width: double.infinity, |
|
|
|
// color: HexColor.fromHex(widget?.model['bg_color']), |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: <Widget>[ |
|
|
|
|
|
|
|
Container( |
|
|
|
width: double.infinity, |
|
|
|
height: hasCategory ? totalHeight - categoryHeight - categoryBottomMargin : totalHeight, |
|
|
|
child: Swiper( |
|
|
|
controller: _controller, |
|
|
|
itemCount: totalPage, |
|
|
|
loop: false, |
|
|
|
itemBuilder: (context, index) { |
|
|
|
return Container( |
|
|
|
height: double.infinity, |
|
|
|
width: double.infinity, |
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 4), |
|
|
|
child: _getPageWidget( |
|
|
|
iconHeight: iconHeight, |
|
|
|
titleHeight: titleHeight, |
|
|
|
totalDataSize: totalDataSize, |
|
|
|
totalPage: totalPage, |
|
|
|
currentPage: index, |
|
|
|
totalRowSize: totalRowSize, |
|
|
|
columSize: columSize, |
|
|
|
model: model, |
|
|
|
itemHeight: itemHeight, |
|
|
|
), |
|
|
|
); |
|
|
|
}, |
|
|
|
pagination: totalPage <= 1 ? null : _getSwiperPaginationContorl(model, totalPage), |
|
|
|
// 左上角标题 |
|
|
|
Visibility( |
|
|
|
visible: !EmptyUtil.isEmpty(model?.moduleTitleName), |
|
|
|
child: Padding( |
|
|
|
padding: const EdgeInsets.only(left: 12.5, bottom: 10), |
|
|
|
child: Text(model?.moduleTitleName ?? '', style: TextStyle(color: HexColor.fromHex(model?.moduleTitleColor), fontWeight: FontWeight.bold, fontSize: 15))), |
|
|
|
), |
|
|
|
|
|
|
|
// icon |
|
|
|
Expanded( |
|
|
|
child: Container( |
|
|
|
width: double.infinity, |
|
|
|
height: hasCategory ? totalHeight - categoryHeight - categoryBottomMargin : totalHeight, |
|
|
|
child: Swiper( |
|
|
|
controller: _controller, |
|
|
|
itemCount: totalPage, |
|
|
|
loop: false, |
|
|
|
itemBuilder: (context, index) { |
|
|
|
return Container( |
|
|
|
height: double.infinity, |
|
|
|
width: double.infinity, |
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 4), |
|
|
|
child: _getPageWidget( |
|
|
|
iconHeight: iconHeight, |
|
|
|
titleHeight: titleHeight, |
|
|
|
totalDataSize: totalDataSize, |
|
|
|
totalPage: totalPage, |
|
|
|
currentPage: index, |
|
|
|
totalRowSize: totalRowSize, |
|
|
|
columSize: columSize, |
|
|
|
model: model, |
|
|
|
itemHeight: itemHeight, |
|
|
|
), |
|
|
|
); |
|
|
|
}, |
|
|
|
pagination: totalPage <= 1 ? null : _getSwiperPaginationContorl(model, totalPage), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
|
|
|
|