更新切图

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: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
'梦想',
style: TextStyles.boldWhiteShadow22_012,
),
Text(
'探索',
style: TextStyles.boldWhiteShadow22_012,
)
],
),
child: Images.homeBtnIconDreamExploration,
),
),
),
@ -557,12 +543,18 @@ class HomeView extends GetView<HomeController> {
)
: Container(),
controller.explored2.value >= 1 ? firstLeafWidget() : Container(),
controller.explored2.value >= 4
?LanternWidget(
brightCount: controller.exploreCount.value >= 2
? controller.exploreDay.value
: controller.exploreDay.value - 1,
): Container(),
Positioned(
right: 60.w,
top: 346.h,
child: AnimatedVisibilityWidget(
animationWidgetBuilder: AnimatedVisibilityWidget.fadeAnimationWidgetBuilder,
duration: const Duration(milliseconds: 800),
isVisible: controller.explored2.value >= 1,
child: const LanternWidget(
brightCount: 0,
),
),
),
Positioned(
left: 168.w,
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:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
/// dialog的模板
@ -30,34 +29,10 @@ class FirstTimeDialog extends StatelessWidget {
isTextShown.value = true;
},
children: [
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,
),
),
Padding(
padding: EdgeInsets.only(bottom: 20.h),
child: Text(
'准备好了吗?',
style: TextStyles.mediumWhiteShadow26_034,
),
),
Images.homeTextDreamTreePageFirstLine,
Images.homeTextDreamTreePageSecondLine,
Images.homeTextDreamTreePageThirdLine,
Images.homeTextDreamTreePageFourthLine,
],
),
),

View File

@ -12,11 +12,7 @@ class LanternWidget extends GetView {
@override
Widget build(BuildContext context) {
return Positioned(
right: 60.w,
top: 346.h,
child: ShowUp(
child: Container(
return Container(
height: 90.h,
width: 180.w,
decoration: const BoxDecoration(
@ -44,8 +40,6 @@ class LanternWidget extends GetView {
: Container(),
],
),
),
),
);
}
}

View File

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

View File

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

View File

@ -157,6 +157,84 @@ class Images {
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(
'home/btn_icon_explore_countdown',
height: 66.w,