From e74e71c2202158f5f29c375e202cbea042d4aa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Tue, 19 Jan 2021 18:54:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=A4=9A=E7=9C=BC=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widgets/custom/multi_nav/custom_quick_entry.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/custom/multi_nav/custom_quick_entry.dart b/lib/widgets/custom/multi_nav/custom_quick_entry.dart index aeaa860..4b2749c 100644 --- a/lib/widgets/custom/multi_nav/custom_quick_entry.dart +++ b/lib/widgets/custom/multi_nav/custom_quick_entry.dart @@ -93,12 +93,13 @@ class __CustomQuickEntryContainerState extends State<_CustomQuickEntryContainer> //计算实际显示行数 if(totalRowSize*columSize>totalDataSize){ for(int index=1;index<=totalRowSize;index++){ - if(index*columSize>=totalRowSize){ + if(index*columSize>=totalDataSize){ totalRowSize=index; break; } } } + print("行数"+totalRowSize.toString()); // 图标的高度 double iconHeight = 40.0;