|
|
@@ -820,7 +820,7 @@ class _CustomQuickCateEntryState extends State<CustomQuickCateEntry> with Ticker |
|
|
|
labelColor: HexColor.fromHex("#FFFFFF"), |
|
|
|
unselectedLabelColor: HexColor.fromHex("#FF333333"), |
|
|
|
labelStyle: TextStyle(fontSize: 14), |
|
|
|
tabs: _buildTab(model,columSize), |
|
|
|
tabs: _buildTab(model,columSize,marginLeftRight), |
|
|
|
labelPadding: EdgeInsets.only(left: 16,right: 16), |
|
|
|
controller: tabController, |
|
|
|
indicatorSize: TabBarIndicatorSize.label, |
|
|
@@ -868,9 +868,9 @@ class _CustomQuickCateEntryState extends State<CustomQuickCateEntry> with Ticker |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
_buildTab(CustomQuickEntryModel model,int columSize) { |
|
|
|
_buildTab(CustomQuickEntryModel model,int columSize,double marginLeft) { |
|
|
|
List<Widget> listWidget = List(); |
|
|
|
var maxWidth = (MediaQuery.of(context).size.width-(32*columSize)) / columSize; |
|
|
|
var maxWidth = ((MediaQuery.of(context).size.width-marginLeft*2)-(32*columSize)) / columSize; |
|
|
|
print("测试"+columSize.toString()); |
|
|
|
for (var item in model?.typeList) { |
|
|
|
listWidget.add(Tab( |
|
|
@@ -992,6 +992,7 @@ class _CustomQuickCateEntryState extends State<CustomQuickCateEntry> with Ticker |
|
|
|
onTap: () => _itemIconClick(item), |
|
|
|
child: Container( |
|
|
|
height: itemHeight, |
|
|
|
width:60, |
|
|
|
// color: Colors.red, |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|