叶子显示顺序跳转
This commit is contained in:
parent
a616102694
commit
c6a97771ca
@ -183,7 +183,7 @@ class HomeView extends GetView<HomeController> {
|
||||
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<HomeController> {
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
controller.explored2.value >= 3
|
||||
controller.explored2.value >= 2
|
||||
? Positioned(
|
||||
left: 352.w,
|
||||
top: 0.0,
|
||||
@ -207,7 +207,7 @@ class HomeView extends GetView<HomeController> {
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
controller.explored2.value >= 2
|
||||
controller.explored2.value >= 3
|
||||
? Positioned(
|
||||
left: 363.w,
|
||||
top: 180.h,
|
||||
@ -476,7 +476,7 @@ class HomeView extends GetView<HomeController> {
|
||||
),
|
||||
),
|
||||
),
|
||||
controller.explored2.value >= 4
|
||||
controller.explored2.value >= 1
|
||||
? Positioned(
|
||||
left: 15.w,
|
||||
top: 20.h,
|
||||
@ -495,7 +495,7 @@ class HomeView extends GetView<HomeController> {
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
controller.explored2.value >= 3
|
||||
controller.explored2.value >= 2
|
||||
? Positioned(
|
||||
left: 352.w,
|
||||
top: 0.0,
|
||||
@ -517,7 +517,7 @@ class HomeView extends GetView<HomeController> {
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
controller.explored2.value >= 2
|
||||
controller.explored2.value >= 3
|
||||
? Positioned(
|
||||
left: 363.w,
|
||||
top: 180.h,
|
||||
@ -536,7 +536,7 @@ class HomeView extends GetView<HomeController> {
|
||||
),
|
||||
)
|
||||
: 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<HomeController> {
|
||||
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,
|
||||
),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user