From 12d64b9fea5ee5c7cc9e64b3f80185380ceb462f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Thu, 28 Jan 2021 10:10:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E5=A4=9A=E7=9C=BC=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=9C=A8=E6=9C=89=E8=BE=B9=E8=B7=9D=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/android/app/build.gradle | 4 ++-- lib/widgets/custom/multi_nav/custom_quick_entry.dart | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index c889caf..c6faeed 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -112,9 +112,9 @@ android { // 智夜生活 zhiying { applicationId "cn.zhios.zhiying" - versionCode 33 + versionCode 34 dimension "app" - versionName '1.2.33' + versionName '1.2.34' // 签名信息 signingConfig signingConfigs.zhiying } diff --git a/lib/widgets/custom/multi_nav/custom_quick_entry.dart b/lib/widgets/custom/multi_nav/custom_quick_entry.dart index a437f81..fed64a0 100644 --- a/lib/widgets/custom/multi_nav/custom_quick_entry.dart +++ b/lib/widgets/custom/multi_nav/custom_quick_entry.dart @@ -820,7 +820,7 @@ class _CustomQuickCateEntryState extends State 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 with Ticker ); } - _buildTab(CustomQuickEntryModel model,int columSize) { + _buildTab(CustomQuickEntryModel model,int columSize,double marginLeft) { List 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 with Ticker onTap: () => _itemIconClick(item), child: Container( height: itemHeight, + width:60, // color: Colors.red, child: Column( crossAxisAlignment: CrossAxisAlignment.center,