|
|
@ -9,6 +9,7 @@ import 'package:hadi_hoda_flutter/common_ui/resources/my_spaces.dart'; |
|
|
import 'package:hadi_hoda_flutter/common_ui/resources/my_text_style.dart'; |
|
|
import 'package:hadi_hoda_flutter/common_ui/resources/my_text_style.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/utils/my_localization.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/utils/my_localization.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/utils/screen_size.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/utils/screen_size.dart'; |
|
|
|
|
|
import 'package:hadi_hoda_flutter/core/utils/set_platform_size.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/animations/ship_anim.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/animations/ship_anim.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/button/my_white_button.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/button/my_white_button.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/button/my_yellow_button.dart'; |
|
|
import 'package:hadi_hoda_flutter/core/widgets/button/my_yellow_button.dart'; |
|
|
@ -24,7 +25,8 @@ class DiamondScreen extends StatelessWidget { |
|
|
return Column( |
|
|
return Column( |
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
children: [ |
|
|
children: [ |
|
|
Stack( |
|
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
child: Stack( |
|
|
alignment: Alignment.center, |
|
|
alignment: Alignment.center, |
|
|
children: [ |
|
|
children: [ |
|
|
Stack( |
|
|
Stack( |
|
|
@ -42,14 +44,17 @@ class DiamondScreen extends StatelessWidget { |
|
|
angle: 0.2, |
|
|
angle: 0.2, |
|
|
child: MyImage( |
|
|
child: MyImage( |
|
|
image: MyAssets.diamondBig, |
|
|
image: MyAssets.diamondBig, |
|
|
size: 200, |
|
|
|
|
|
|
|
|
size: setSize(context: context, mobile: 200, tablet: 300), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
Padding( |
|
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
|
top: 250, |
|
|
|
|
|
|
|
|
Positioned( |
|
|
|
|
|
bottom: setSize( |
|
|
|
|
|
context: context, |
|
|
|
|
|
mobile: context.heightScreen * 0.15, |
|
|
|
|
|
tablet: context.heightScreen * 0.2, |
|
|
), |
|
|
), |
|
|
child: Column( |
|
|
child: Column( |
|
|
|
|
|
mainAxisSize: MainAxisSize.min, |
|
|
children: [ |
|
|
children: [ |
|
|
Text( |
|
|
Text( |
|
|
context.translate.you_win, |
|
|
context.translate.you_win, |
|
|
@ -83,42 +88,48 @@ class DiamondScreen extends StatelessWidget { |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
Positioned( |
|
|
Positioned( |
|
|
top: 120, |
|
|
|
|
|
right: MySpaces.s16, |
|
|
|
|
|
|
|
|
top: setSize(context: context, mobile: 120, tablet: 220), |
|
|
|
|
|
right: setSize(context: context, mobile: MySpaces.s16, tablet: 60), |
|
|
child: Stack( |
|
|
child: Stack( |
|
|
children: [ |
|
|
children: [ |
|
|
Transform.rotate( |
|
|
Transform.rotate( |
|
|
angle: 0.4, |
|
|
angle: 0.4, |
|
|
child: MyImage( |
|
|
child: MyImage( |
|
|
image: MyAssets.diamondBig, |
|
|
image: MyAssets.diamondBig, |
|
|
size: 80, |
|
|
|
|
|
|
|
|
size: setSize(context: context, mobile: 80, tablet: 150), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
ClipRRect( |
|
|
ClipRRect( |
|
|
child: BackdropFilter( |
|
|
child: BackdropFilter( |
|
|
filter: ImageFilter.blur(sigmaX: 3, sigmaY: 3), |
|
|
filter: ImageFilter.blur(sigmaX: 3, sigmaY: 3), |
|
|
child: SizedBox(width: 80, height: 80,), |
|
|
|
|
|
|
|
|
child: SizedBox( |
|
|
|
|
|
width: setSize(context: context, mobile: 80, tablet: 200), |
|
|
|
|
|
height: setSize(context: context, mobile: 80, tablet: 200), |
|
|
|
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
Positioned( |
|
|
Positioned( |
|
|
top: 100, |
|
|
|
|
|
left: MySpaces.s16, |
|
|
|
|
|
|
|
|
top: setSize(context: context, mobile: 100, tablet: 200), |
|
|
|
|
|
left: setSize(context: context, mobile: 16, tablet: 60), |
|
|
child: Stack( |
|
|
child: Stack( |
|
|
children: [ |
|
|
children: [ |
|
|
Transform.rotate( |
|
|
Transform.rotate( |
|
|
angle: -0.6, |
|
|
angle: -0.6, |
|
|
child: MyImage( |
|
|
child: MyImage( |
|
|
image: MyAssets.diamondBig, |
|
|
image: MyAssets.diamondBig, |
|
|
size: 60, |
|
|
|
|
|
|
|
|
size: setSize(context: context, mobile: 60, tablet: 100), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
ClipRRect( |
|
|
ClipRRect( |
|
|
child: BackdropFilter( |
|
|
child: BackdropFilter( |
|
|
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5), |
|
|
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5), |
|
|
child: SizedBox(width: 80, height: 80,), |
|
|
|
|
|
|
|
|
child: SizedBox( |
|
|
|
|
|
width: setSize(context: context, mobile: 80, tablet: 200), |
|
|
|
|
|
height: setSize(context: context, mobile: 80, tablet: 200), |
|
|
|
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
@ -126,6 +137,7 @@ class DiamondScreen extends StatelessWidget { |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
|
|
|
), |
|
|
Stack( |
|
|
Stack( |
|
|
alignment: Alignment.center, |
|
|
alignment: Alignment.center, |
|
|
clipBehavior: Clip.none, |
|
|
clipBehavior: Clip.none, |
|
|
|