From a59ea5541e11314f27669b06926ea7fe0a205ec8 Mon Sep 17 00:00:00 2001 From: baohangxing <483053800@qq.com> Date: Tue, 17 Nov 2020 13:07:06 +0800 Subject: [PATCH] Fix the building weidget can move but can not reset automatically if itemCouter equits one and the mode is SwiperLayout.STACK --- lib/src/custom_layout.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/custom_layout.dart b/lib/src/custom_layout.dart index 8ce77f2..94bce05 100644 --- a/lib/src/custom_layout.dart +++ b/lib/src/custom_layout.dart @@ -235,7 +235,8 @@ abstract class _CustomLayoutStateBase extends State if (value < 0.5) { value = 0.5; } - } else if (_currentIndex <= 0) { + } + if (_currentIndex <= 0) { if (value > 0.5) { value = 0.5; }