From c6a97771cae0032a4a48418faee2861a6ad52e1f Mon Sep 17 00:00:00 2001 From: yuanjunyao <78557062@qq.com> Date: Sat, 2 Dec 2023 10:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B6=E5=AD=90=E6=98=BE=E7=A4=BA=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/app/modules/home/views/home_view.dart | 18 +++++++++--------- .../modules/home/widgets/lantern_widget.dart | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/app/modules/home/views/home_view.dart b/lib/app/modules/home/views/home_view.dart index d297cc6..4fb908a 100644 --- a/lib/app/modules/home/views/home_view.dart +++ b/lib/app/modules/home/views/home_view.dart @@ -183,7 +183,7 @@ class HomeView extends GetView { Widget goalWidget() { return Stack( children: [ - controller.explored2.value >= 4 + controller.explored2.value >= 1 ? Positioned( left: 15.w, top: 20.h, @@ -195,7 +195,7 @@ class HomeView extends GetView { ), ) : Container(), - controller.explored2.value >= 3 + controller.explored2.value >= 2 ? Positioned( left: 352.w, top: 0.0, @@ -207,7 +207,7 @@ class HomeView extends GetView { ), ) : Container(), - controller.explored2.value >= 2 + controller.explored2.value >= 3 ? Positioned( left: 363.w, top: 180.h, @@ -476,7 +476,7 @@ class HomeView extends GetView { ), ), ), - controller.explored2.value >= 4 + controller.explored2.value >= 1 ? Positioned( left: 15.w, top: 20.h, @@ -495,7 +495,7 @@ class HomeView extends GetView { ), ) : Container(), - controller.explored2.value >= 3 + controller.explored2.value >= 2 ? Positioned( left: 352.w, top: 0.0, @@ -517,7 +517,7 @@ class HomeView extends GetView { ), ) : Container(), - controller.explored2.value >= 2 + controller.explored2.value >= 3 ? Positioned( left: 363.w, top: 180.h, @@ -536,7 +536,7 @@ class HomeView extends GetView { ), ) : Container(), - controller.explored2.value >= 1 ? firstLeafWidget() : Container(), + controller.explored2.value >= 4 ? firstLeafWidget() : Container(), Positioned( right: 60.w, top: 346.h, @@ -544,9 +544,9 @@ class HomeView extends GetView { animationWidgetBuilder: AnimatedVisibilityWidget.fadeAnimationWidgetBuilder, duration: const Duration(milliseconds: 800), - isVisible: controller.explored2.value >= 1, + isVisible: controller.explored2.value >= 4, child: Visibility( - visible: controller.explored2.value >= 1, + visible: controller.explored2.value >= 4, child: const LanternWidget( brightCount: 0, ), diff --git a/lib/app/modules/home/widgets/lantern_widget.dart b/lib/app/modules/home/widgets/lantern_widget.dart index 993b620..3ab4232 100644 --- a/lib/app/modules/home/widgets/lantern_widget.dart +++ b/lib/app/modules/home/widgets/lantern_widget.dart @@ -13,7 +13,7 @@ class LanternWidget extends GetView { @override Widget build(BuildContext context) { return ShowUp( - duration: const Duration(seconds: 2), + duration: const Duration(seconds: 1, milliseconds: 500), child: Container( height: 90.h, width: 180.w,