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