Selaa lähdekoodia

1、多眼导航修改标题高度

tags/0.0.16+9^0
PH2 3 vuotta sitten
vanhempi
commit
b4c077645e
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. +7
    -7
      lib/widgets/custom/multi_nav/custom_quick_entry.dart

+ 7
- 7
lib/widgets/custom/multi_nav/custom_quick_entry.dart Näytä tiedosto

@@ -116,7 +116,7 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer>
iconHeight = 43.5;
}
// 标题的高度
double titleHeight = 21.0;
double titleHeight = 22;

// 子元素的高度
double itemHeight = iconHeight;
@@ -144,10 +144,10 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer>
}

// 分类导航高度
double categoryHeight = 24;
// double categoryHeight = 24;
// 分类导航到多眼导航的边距
double categoryBottomMargin = 15.0;
bool hasCategory = false;
// double categoryBottomMargin = 15.0;
// bool hasCategory = false;
// if(!EmptyUtil.isEmpty(model?.typeList) && model.typeList.length >= 2){
// totalHeight = totalHeight + categoryHeight + categoryBottomMargin;
// hasCategory = true;
@@ -173,7 +173,7 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer>
bottomRight: Radius.circular(ParseUtil.stringParseDouble(model?.bottomRightRadius)),
)),
child: Container(
margin: EdgeInsets.only(top: !hasCategory ? 15 : 0, bottom: totalPage > 1 ? 8 : 0),
margin: EdgeInsets.only(top: 15, bottom: totalPage > 1 ? 8 : 0),
height: totalHeight,
// 总体高度
width: double.infinity,
@@ -193,7 +193,7 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer>
Expanded(
child: Container(
width: double.infinity,
height: hasCategory ? totalHeight - categoryHeight - categoryBottomMargin : totalHeight,
height: totalHeight,
child: Swiper(
controller: _controller,
itemCount: totalPage,
@@ -566,7 +566,7 @@ class _CustomQuickCateEntryState extends State<CustomQuickCateEntry> with Ticker
iconHeight = 43.5;
}
// 标题的高度
double titleHeight = 21.0;
double titleHeight = 22;

// 子元素的高度
double itemHeight = iconHeight;


Ladataan…
Peruuta
Tallenna