|
|
|
@ -1,10 +1,10 @@ |
|
|
|
import 'package:flutter/material.dart' hide BoxDecoration, BoxShadow; |
|
|
|
import 'package:flutter_inset_box_shadow_update/flutter_inset_box_shadow_update.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/core/utils/gap.dart'; |
|
|
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
|
|
|
import 'package:shia_game_flutter/core/utils/screen_size.dart'; |
|
|
|
import 'package:shia_game_flutter/core/widgets/container/my_container.dart'; |
|
|
|
import 'package:shia_game_flutter/core/widgets/image/my_image.dart'; |
|
|
|
import 'package:shia_game_flutter/core/widgets/text/gradient_text.dart'; |
|
|
|
@ -21,8 +21,8 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
clipBehavior: Clip.none, |
|
|
|
children: [ |
|
|
|
MyContainer( |
|
|
|
height: 120, |
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(MySpaces.s20)), |
|
|
|
height: 120.h, |
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(20)), |
|
|
|
borderGradient: const LinearGradient( |
|
|
|
begin: AlignmentDirectional.topCenter, |
|
|
|
end: AlignmentDirectional.bottomCenter, |
|
|
|
@ -33,7 +33,7 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
center: const Alignment(-0.5, -1), |
|
|
|
colors: [const Color(0XFF104CBA).withValues(alpha: 0.2), const Color(0XFF104CBA)], |
|
|
|
), |
|
|
|
padding: const EdgeInsets.all(MySpaces.s10), |
|
|
|
padding: const EdgeInsets.all(10), |
|
|
|
image: DecorationImage( |
|
|
|
image: const AssetImage(MyAssets.addBackground), |
|
|
|
repeat: ImageRepeat.repeat, |
|
|
|
@ -52,9 +52,9 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
offset: const Offset(0, 1.04), |
|
|
|
blurRadius: 0.52, |
|
|
|
shadowColor: const Color(0xFF3C38C4), |
|
|
|
fontSize: 22, |
|
|
|
fontSize: 22.sp, |
|
|
|
), |
|
|
|
MySpaces.s10.gapHeight, |
|
|
|
10.h.gapHeight, |
|
|
|
Container( |
|
|
|
padding: const EdgeInsets.all(5), |
|
|
|
decoration: BoxDecoration( |
|
|
|
@ -73,7 +73,7 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
'Sheikh.Sadra VS Ali Masoudi (online) - Sheikh.Sadra number tow VS Ali Masoudi tabar (tomorrow)', |
|
|
|
maxLines: 1, |
|
|
|
style: Lexend.semiBold.copyWith( |
|
|
|
fontSize: 8, |
|
|
|
fontSize: 8.sp, |
|
|
|
color: const Color(0XFFB6B3FF), |
|
|
|
), |
|
|
|
), |
|
|
|
@ -83,12 +83,12 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
), |
|
|
|
PositionedDirectional( |
|
|
|
start: -1, |
|
|
|
top: -MySpaces.s4, |
|
|
|
top: -4, |
|
|
|
child: MyContainer( |
|
|
|
color: const Color(0XFFCC9B22), |
|
|
|
padding: const EdgeInsets.symmetric( |
|
|
|
vertical: MySpaces.s2, |
|
|
|
horizontal: MySpaces.s8, |
|
|
|
vertical: 2, |
|
|
|
horizontal: 8, |
|
|
|
), |
|
|
|
borderRadius: const BorderRadiusDirectional.only( |
|
|
|
topStart: Radius.circular(6), |
|
|
|
@ -99,14 +99,14 @@ class HomeBattleCast extends StatelessWidget { |
|
|
|
child: Text( |
|
|
|
'2 New', |
|
|
|
style: Lexend.extraBold.copyWith( |
|
|
|
fontSize: 11, |
|
|
|
fontSize: 11.sp, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
const PositionedDirectional( |
|
|
|
end: MySpaces.s20, |
|
|
|
top: -MySpaces.s10, |
|
|
|
end: 20, |
|
|
|
top: -10, |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
MyImage( |
|
|
|
|