Update: 2026-07-12 17:46:46

This commit is contained in:
Hamza-Ayed
2026-07-12 17:46:46 +03:00
parent 27200013ac
commit 8cd4a4b57e
3 changed files with 62 additions and 48 deletions
+33 -33
View File
@@ -7,7 +7,7 @@ import 'colors.dart';
class AppStyle { class AppStyle {
static TextStyle get headTitle => TextStyle( static TextStyle get headTitle => TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 36, fontSize: box.read(BoxName.lang) == 'ar' ? 36 : 28,
color: AppColor.accentColor, color: AppColor.accentColor,
fontFamily: box.read(BoxName.lang) == 'ar' fontFamily: box.read(BoxName.lang) == 'ar'
// ?GoogleFonts.markaziText().fontFamily // ?GoogleFonts.markaziText().fontFamily
@@ -15,21 +15,21 @@ class AppStyle {
: GoogleFonts.inter().fontFamily); : GoogleFonts.inter().fontFamily);
static TextStyle get headTitle2 => TextStyle( static TextStyle get headTitle2 => TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 24, fontSize: box.read(BoxName.lang) == 'ar' ? 24 : 20,
color: AppColor.writeColor, color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar' fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily ? GoogleFonts.markaziText().fontFamily
: GoogleFonts.inter().fontFamily); : GoogleFonts.inter().fontFamily);
static TextStyle get title => TextStyle( static TextStyle get title => TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
fontSize: 16, fontSize: box.read(BoxName.lang) == 'ar' ? 16 : 14,
color: AppColor.writeColor, color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar' fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily ? GoogleFonts.markaziText().fontFamily
: GoogleFonts.inter().fontFamily); : GoogleFonts.inter().fontFamily);
static TextStyle get subtitle => TextStyle( static TextStyle get subtitle => TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 12, fontSize: box.read(BoxName.lang) == 'ar' ? 12 : 11,
color: AppColor.writeColor, color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar' fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily ? GoogleFonts.markaziText().fontFamily
@@ -41,34 +41,34 @@ class AppStyle {
fontFamily: 'digit'); fontFamily: 'digit');
static BoxDecoration get boxDecoration => BoxDecoration( static BoxDecoration get boxDecoration => BoxDecoration(
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: AppColor.accentColor.withOpacity(0.3), color: AppColor.accentColor.withOpacity(0.3),
blurRadius: 5, blurRadius: 5,
offset: const Offset(2, 4)), offset: const Offset(2, 4)),
BoxShadow( BoxShadow(
color: AppColor.accentColor.withOpacity(0.1), color: AppColor.accentColor.withOpacity(0.1),
blurRadius: 5, blurRadius: 5,
offset: const Offset(-2, -2)) offset: const Offset(-2, -2))
], ],
color: AppColor.secondaryColor, color: AppColor.secondaryColor,
borderRadius: const BorderRadius.all( borderRadius: const BorderRadius.all(
Radius.elliptical(15, 30), Radius.elliptical(15, 30),
)); ));
static BoxDecoration get boxDecoration1 => BoxDecoration( static BoxDecoration get boxDecoration1 => BoxDecoration(
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black.withOpacity(0.05), color: Colors.black.withOpacity(0.05),
blurRadius: 10, blurRadius: 10,
offset: const Offset(0, 4)), offset: const Offset(0, 4)),
BoxShadow( BoxShadow(
color: AppColor.primaryColor.withOpacity(0.02), color: AppColor.primaryColor.withOpacity(0.02),
blurRadius: 5, blurRadius: 5,
offset: const Offset(-2, -2)) offset: const Offset(-2, -2))
], ],
color: AppColor.secondaryColor, color: AppColor.secondaryColor,
borderRadius: const BorderRadius.all( borderRadius: const BorderRadius.all(
Radius.elliptical(15, 30), Radius.elliptical(15, 30),
), ),
); );
} }
@@ -84,7 +84,6 @@ class MapPagePassenger extends StatelessWidget {
const VipRideBeginPassenger(), const VipRideBeginPassenger(),
const RideFromStartApp(), const RideFromStartApp(),
PointsPageForRider(), PointsPageForRider(),
], ],
), ),
), ),
@@ -162,8 +161,7 @@ class CancelRidePageShow extends StatelessWidget {
return showCancelButton return showCancelButton
? Positioned( ? Positioned(
right: box.read(BoxName.lang) == 'ar' ? 10 : null, right: 10,
left: box.read(BoxName.lang) != 'ar' ? 10 : null,
top: Get.height * .013, top: Get.height * .013,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
@@ -165,9 +165,13 @@ class MyCreditCardWidget extends StatelessWidget {
), ),
SizedBox( SizedBox(
width: Get.width * .25, width: Get.width * .25,
child: Text( child: FittedBox(
'Card Number'.tr, fit: BoxFit.scaleDown,
style: AppStyle.title, alignment: AlignmentDirectional.centerStart,
child: Text(
'Card Number'.tr,
style: AppStyle.title,
),
), ),
), ),
SizedBox( SizedBox(
@@ -210,9 +214,13 @@ class MyCreditCardWidget extends StatelessWidget {
), ),
SizedBox( SizedBox(
width: Get.width * .25, width: Get.width * .25,
child: Text( child: FittedBox(
'Holder Name', fit: BoxFit.scaleDown,
style: AppStyle.title, alignment: AlignmentDirectional.centerStart,
child: Text(
'Holder Name'.tr,
style: AppStyle.title,
),
), ),
), ),
SizedBox( SizedBox(
@@ -257,9 +265,13 @@ class MyCreditCardWidget extends StatelessWidget {
children: [ children: [
SizedBox( SizedBox(
width: Get.width * .2, width: Get.width * .2,
child: Text( child: FittedBox(
'Expiry Date', fit: BoxFit.scaleDown,
style: AppStyle.subtitle, alignment: AlignmentDirectional.centerStart,
child: Text(
'Expiry Date'.tr,
style: AppStyle.subtitle,
),
), ),
), ),
SizedBox( SizedBox(
@@ -300,9 +312,13 @@ class MyCreditCardWidget extends StatelessWidget {
children: [ children: [
SizedBox( SizedBox(
width: Get.width * .2, width: Get.width * .2,
child: Text( child: FittedBox(
'CVV Code', fit: BoxFit.scaleDown,
style: AppStyle.subtitle, alignment: AlignmentDirectional.centerStart,
child: Text(
'CVV Code'.tr,
style: AppStyle.subtitle,
),
), ),
), ),
SizedBox( SizedBox(