更新切图
BIN
assets/images/home/btn_icon_click.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/images/home/btn_icon_dream_exploration.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
assets/images/home/text_dream_tree_page_first_line.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
assets/images/home/text_dream_tree_page_fourth_line.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
assets/images/home/text_dream_tree_page_second_line.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
assets/images/home/text_dream_tree_page_third_line.png
Normal file
After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 26 KiB |
BIN
assets/images/splash/text_startup_page_first_line.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
assets/images/splash/text_startup_page_fourth_line.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
assets/images/splash/text_startup_page_second_line.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
assets/images/splash/text_startup_page_third_line.png
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 17 KiB |
BIN
assets/images/welcome/text_welcome_page_first_line.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/images/welcome/text_welcome_page_fourth_line.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/images/welcome/text_welcome_page_second_line.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
assets/images/welcome/text_welcome_page_third_line.png
Normal file
After Width: | Height: | Size: 12 KiB |
@ -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,
|
||||||
|
@ -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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -12,11 +12,7 @@ class LanternWidget extends GetView {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Positioned(
|
return Container(
|
||||||
right: 60.w,
|
|
||||||
top: 346.h,
|
|
||||||
child: ShowUp(
|
|
||||||
child: Container(
|
|
||||||
height: 90.h,
|
height: 90.h,
|
||||||
width: 180.w,
|
width: 180.w,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
@ -44,8 +40,6 @@ class LanternWidget extends GetView {
|
|||||||
: Container(),
|
: Container(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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,
|
||||||
|