|
|
@ -1,7 +1,6 @@ |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/resources/my_assets.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/resources/my_assets.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/resources/my_spaces.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/common_ui/resources/my_text_style.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/resources/my_text_style.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/theme/my_theme.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/theme/my_theme.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
|
|
@ -29,10 +28,7 @@ class IntroPage extends GetView<IntroController> { |
|
|
), |
|
|
), |
|
|
child: Stack( |
|
|
child: Stack( |
|
|
alignment: Alignment.center, |
|
|
alignment: Alignment.center, |
|
|
children: [ |
|
|
|
|
|
_logo(context), |
|
|
|
|
|
_bottomLoading(context), |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
children: [_logo(context), _bottomLoading(context)], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -40,63 +36,44 @@ class IntroPage extends GetView<IntroController> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Stack _logo(BuildContext context) { |
|
|
Stack _logo(BuildContext context) { |
|
|
return const Stack( |
|
|
|
|
|
|
|
|
return Stack( |
|
|
clipBehavior: Clip.none, |
|
|
clipBehavior: Clip.none, |
|
|
alignment: Alignment.center, |
|
|
alignment: Alignment.center, |
|
|
children: [ |
|
|
children: [ |
|
|
MyImage(asset: MyAssets.shiaMind), |
|
|
|
|
|
|
|
|
const MyImage(asset: MyAssets.shiaMind), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
top: -124, |
|
|
|
|
|
end: -62, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
top: -124.h, |
|
|
|
|
|
end: -62.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
top: -157, |
|
|
|
|
|
end: 60, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
size: 30, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
top: -157.h, |
|
|
|
|
|
end: 60.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question, size: 30), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
top: -90, |
|
|
|
|
|
start: -30, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
size: 25, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
top: -90.h, |
|
|
|
|
|
start: -30.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question, size: 25), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
bottom: -90, |
|
|
|
|
|
start: -30, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
bottom: -90.h, |
|
|
|
|
|
start: -30.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
bottom: -90, |
|
|
|
|
|
end: -62, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
size: 15, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
bottom: -90.h, |
|
|
|
|
|
end: -62.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question, size: 15), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
bottom: -10, |
|
|
|
|
|
end: 70, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.question, |
|
|
|
|
|
size: 15, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
bottom: -10.h, |
|
|
|
|
|
end: 70.w, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.question, size: 15), |
|
|
), |
|
|
), |
|
|
PositionedDirectional( |
|
|
PositionedDirectional( |
|
|
top: -15, |
|
|
|
|
|
child: MyImage( |
|
|
|
|
|
asset: MyAssets.introStar, |
|
|
|
|
|
size: 75, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
top: -15.h, |
|
|
|
|
|
child: const MyImage(asset: MyAssets.introStar, size: 75), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
); |
|
|
); |
|
|
@ -104,14 +81,14 @@ class IntroPage extends GetView<IntroController> { |
|
|
|
|
|
|
|
|
Positioned _bottomLoading(BuildContext context) { |
|
|
Positioned _bottomLoading(BuildContext context) { |
|
|
return Positioned( |
|
|
return Positioned( |
|
|
bottom: MySpaces.s16, |
|
|
|
|
|
|
|
|
bottom: 16.h, |
|
|
child: Column( |
|
|
child: Column( |
|
|
spacing: MySpaces.s10, |
|
|
|
|
|
|
|
|
spacing: 10.h, |
|
|
mainAxisSize: MainAxisSize.min, |
|
|
mainAxisSize: MainAxisSize.min, |
|
|
children: [ |
|
|
children: [ |
|
|
Text( |
|
|
Text( |
|
|
context.translate.loading, |
|
|
context.translate.loading, |
|
|
style: Lexend.regular.copyWith(fontSize: MySpaces.s14), |
|
|
|
|
|
|
|
|
style: Lexend.regular.copyWith(fontSize: 12.sp), |
|
|
), |
|
|
), |
|
|
const IntroLoading(), |
|
|
const IntroLoading(), |
|
|
], |
|
|
], |
|
|
|