chore: change Flutter build mode to debug in local.properties, add strVersion observable in SplashLogic, and update splash view layout to display version information

This commit is contained in:
2025-12-29 13:02:57 +03:30
parent ed113d8702
commit edde363b6d
3 changed files with 48 additions and 31 deletions

View File

@@ -10,35 +10,51 @@ class SplashPage extends GetView<SplashLogic> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColor.blueDarker,
body: Center(
child: Stack(
alignment: Alignment.center,
children: [
ObxValue((data) {
return ScaleTransition(
scale: data.value!,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Assets.images.innerSplash.image(
width: 190,
height: 190,
),
),
);
}, controller.scaleAnimation),
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Spacer(),
Center(
child: Stack(
alignment: Alignment.center,
children: [
ObxValue((data) {
return ScaleTransition(
scale: data.value!,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Assets.images.innerSplash.image(
width: 190,
height: 190,
),
),
);
}, controller.scaleAnimation),
ObxValue((data) {
return RotationTransition(
turns: data.value!,
ObxValue((data) {
return RotationTransition(
turns: data.value!,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Assets.images.outterSplash.image(),
),
);
}, controller.rotationAnimation),
],
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Assets.images.outterSplash.image(),
),
);
}, controller.rotationAnimation),
],
),
),
Spacer(),
ObxValue((data) {
return Text(
data.value,
style: AppFonts.yekan16.copyWith(
color: Colors.white.withAlpha(120),
),
);
}, controller.strVersion),
SizedBox(height: 30.h),
],
),
);
}