更新切图

This commit is contained in:
yuanjunyao 2023-11-30 16:36:14 +08:00
parent 0d9aee1ed4
commit 997f5e0a88
22 changed files with 133 additions and 114 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -477,21 +477,7 @@ class HomeView extends GetView<HomeController> {
), ),
), ),
child: Center( child: Center(
child: Column( child: Images.homeBtnIconDreamExploration,
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
'梦想',
style: TextStyles.boldWhiteShadow22_012,
),
Text(
'探索',
style: TextStyles.boldWhiteShadow22_012,
)
],
),
), ),
), ),
), ),
@ -557,12 +543,18 @@ class HomeView extends GetView<HomeController> {
) )
: Container(), : Container(),
controller.explored2.value >= 1 ? firstLeafWidget() : Container(), controller.explored2.value >= 1 ? firstLeafWidget() : Container(),
controller.explored2.value >= 4 Positioned(
?LanternWidget( right: 60.w,
brightCount: controller.exploreCount.value >= 2 top: 346.h,
? controller.exploreDay.value child: AnimatedVisibilityWidget(
: controller.exploreDay.value - 1, animationWidgetBuilder: AnimatedVisibilityWidget.fadeAnimationWidgetBuilder,
): Container(), duration: const Duration(milliseconds: 800),
isVisible: controller.explored2.value >= 1,
child: const LanternWidget(
brightCount: 0,
),
),
),
Positioned( Positioned(
left: 168.w, left: 168.w,
top: 244.h, top: 244.h,

View File

@ -2,7 +2,6 @@ import 'package:dreampad/app/shared/shared.dart';
import 'package:dreampad/app/shared/widgets/touch_hint_widget.dart'; import 'package:dreampad/app/shared/widgets/touch_hint_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
/// dialog的模板 /// dialog的模板
@ -30,34 +29,10 @@ class FirstTimeDialog extends StatelessWidget {
isTextShown.value = true; isTextShown.value = true;
}, },
children: [ children: [
Padding( Images.homeTextDreamTreePageFirstLine,
padding: EdgeInsets.only(bottom: 20.h), Images.homeTextDreamTreePageSecondLine,
child: Text( Images.homeTextDreamTreePageThirdLine,
'探梦者,你选择了一个很酷的梦想', Images.homeTextDreamTreePageFourthLine,
style: TextStyles.mediumWhiteShadow26_034,
),
),
Padding(
padding: EdgeInsets.only(bottom: 20.h),
child: Text(
'现在在你面前是专属于你的梦之建木',
style: TextStyles.mediumWhiteShadow26_034,
),
),
Padding(
padding: EdgeInsets.only(bottom: 20.h),
child: Text(
'你将会看到你未来几个关键阶段的重要目标',
style: TextStyles.mediumWhiteShadow26_034,
),
),
Padding(
padding: EdgeInsets.only(bottom: 20.h),
child: Text(
'准备好了吗?',
style: TextStyles.mediumWhiteShadow26_034,
),
),
], ],
), ),
), ),

View File

@ -12,40 +12,34 @@ class LanternWidget extends GetView {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Positioned( return Container(
right: 60.w, height: 90.h,
top: 346.h, width: 180.w,
child: ShowUp( decoration: const BoxDecoration(
child: Container( image: DecorationImage(
height: 90.h, image: Images.homeLantern,
width: 180.w, fit: BoxFit.fill,
decoration: const BoxDecoration(
image: DecorationImage(
image: Images.homeLantern,
fit: BoxFit.fill,
),
),
child: Stack(
clipBehavior: Clip.none,
children: [
brightCount! >= 1
? Positioned(
left: -9.w,
top: 36.h,
child: Images.homeLanternBright,
)
: Container(),
brightCount! >= 2
? Positioned(
left: 18.w,
top: 27.h,
child: Images.homeLanternBright,
)
: Container(),
],
),
), ),
), ),
child: Stack(
clipBehavior: Clip.none,
children: [
brightCount! >= 1
? Positioned(
left: -9.w,
top: 36.h,
child: Images.homeLanternBright,
)
: Container(),
brightCount! >= 2
? Positioned(
left: 18.w,
top: 27.h,
child: Images.homeLanternBright,
)
: Container(),
],
),
); );
} }
} }

View File

@ -23,33 +23,18 @@ class HelloWidget extends StatelessWidget {
child: AnimatedColumnWidget( child: AnimatedColumnWidget(
children: [ children: [
Padding( Padding(
padding: EdgeInsets.only(bottom: 16.h), padding: EdgeInsets.only(bottom: 8.h),
child: Text( child: Images.welcomeFirstLine,
'探梦者你好',
style: TextStyles.mediumWhiteShadow26_034,
),
), ),
Padding( Padding(
padding: EdgeInsets.only(bottom: 16.h), padding: EdgeInsets.only(bottom: 8.h),
child: Text( child: Images.welcomeSecondLine,
'这里是建木遗迹',
style: TextStyles.mediumWhiteShadow26_034,
),
), ),
Padding( Padding(
padding: EdgeInsets.only(bottom: 16.h), padding: EdgeInsets.only(bottom: 8.h),
child: Text( child: Images.welcomeThirdLine,
'在探索之前',
style: TextStyles.mediumWhiteShadow26_034,
),
),
Padding(
padding: EdgeInsets.only(bottom: 16.h),
child: Text(
'请告诉我',
style: TextStyles.mediumWhiteShadow26_034,
),
), ),
Images.welcomeFourthLine,
], ],
onDone: () { onDone: () {
isTextShown.value = true; isTextShown.value = true;

View File

@ -18,7 +18,7 @@ class SplashView extends StatelessWidget {
return Stack( return Stack(
children: [ children: [
Positioned( Positioned(
top: 228.h, top: 200.h,
left: 0, left: 0,
right: 0, right: 0,
child: Center( child: Center(
@ -26,15 +26,10 @@ class SplashView extends StatelessWidget {
style: TextStyles.mediumWhiteShadowHeight26_034, style: TextStyles.mediumWhiteShadowHeight26_034,
child: AnimatedColumnWidget( child: AnimatedColumnWidget(
children: [ children: [
const Text('上古时期,天帝颛顼命重黎绝地天通'), Images.splashFirstLine,
const Text('斩断了连接天界与人间之桥——建木为重生建木'), Images.splashSecondLine,
const Text( Images.splashThirdLine,
'探梦者们踏上了旅途……', Images.splashFourthLine,
),
Text(
'故事源于《山海经·大荒西经》',
style: TextStyles.mediumWhiteShadow16_034,
),
], ],
onDone: () { onDone: () {
isStoryShown.value = true; isStoryShown.value = true;

View File

@ -157,6 +157,84 @@ class Images {
width: 66.w, width: 66.w,
); );
static Widget splashFirstLine = LoadAssetImage(
'splash/text_startup_page_first_line',
height: 42.w * 1.5,
width: 326.w * 1.5,
);
static Widget splashSecondLine = LoadAssetImage(
'splash/text_startup_page_second_line',
height: 42.w * 1.5,
width: 326.w * 1.5,
);
static Widget splashThirdLine = LoadAssetImage(
'splash/text_startup_page_third_line',
height: 42.w * 1.5,
width: 326.w * 1.5,
);
static Widget splashFourthLine = LoadAssetImage(
'splash/text_startup_page_fourth_line',
height: 42.w * 1.5,
width: 326.w * 1.5,
);
static Widget welcomeFirstLine = LoadAssetImage(
'welcome/text_welcome_page_first_line',
height: 30.w * 1.5,
width: 346.w * 1.5,
);
static Widget welcomeSecondLine = LoadAssetImage(
'welcome/text_welcome_page_second_line',
height: 30.w * 1.5,
width: 346.w * 1.5,
);
static Widget welcomeThirdLine = LoadAssetImage(
'welcome/text_welcome_page_third_line',
height: 30.w * 1.5,
width: 346.w * 1.5,
);
static Widget welcomeFourthLine = LoadAssetImage(
'welcome/text_welcome_page_fourth_line',
height: 30.w * 1.5,
width: 346.w * 1.5,
);
static Widget homeTextDreamTreePageFirstLine = LoadAssetImage(
'home/text_dream_tree_page_first_line',
height: 42.w * 1.5,
width: 346.w * 1.5,
);
static Widget homeTextDreamTreePageSecondLine = LoadAssetImage(
'home/text_dream_tree_page_second_line',
height: 42.w * 1.5,
width: 346.w * 1.5,
);
static Widget homeTextDreamTreePageThirdLine = LoadAssetImage(
'home/text_dream_tree_page_third_line',
height: 42.w * 1.5,
width: 346.w * 1.5,
);
static Widget homeTextDreamTreePageFourthLine = LoadAssetImage(
'home/text_dream_tree_page_fourth_line',
height: 42.w * 1.5,
width: 346.w * 1.5,
);
static Widget homeBtnIconDreamExploration = LoadAssetImage(
'home/btn_icon_dream_exploration',
height: 34.w * 1.8,
width: 32.w * 1.8,
);
static Widget homeExploreCountdown = LoadAssetImage( static Widget homeExploreCountdown = LoadAssetImage(
'home/btn_icon_explore_countdown', 'home/btn_icon_explore_countdown',
height: 66.w, height: 66.w,