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
+4 -4
View File
@@ -7,7 +7,7 @@ import 'colors.dart';
class AppStyle {
static TextStyle get headTitle => TextStyle(
fontWeight: FontWeight.bold,
fontSize: 36,
fontSize: box.read(BoxName.lang) == 'ar' ? 36 : 28,
color: AppColor.accentColor,
fontFamily: box.read(BoxName.lang) == 'ar'
// ?GoogleFonts.markaziText().fontFamily
@@ -15,21 +15,21 @@ class AppStyle {
: GoogleFonts.inter().fontFamily);
static TextStyle get headTitle2 => TextStyle(
fontWeight: FontWeight.bold,
fontSize: 24,
fontSize: box.read(BoxName.lang) == 'ar' ? 24 : 20,
color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily
: GoogleFonts.inter().fontFamily);
static TextStyle get title => TextStyle(
fontWeight: FontWeight.normal,
fontSize: 16,
fontSize: box.read(BoxName.lang) == 'ar' ? 16 : 14,
color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily
: GoogleFonts.inter().fontFamily);
static TextStyle get subtitle => TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12,
fontSize: box.read(BoxName.lang) == 'ar' ? 12 : 11,
color: AppColor.writeColor,
fontFamily: box.read(BoxName.lang) == 'ar'
? GoogleFonts.markaziText().fontFamily
@@ -84,7 +84,6 @@ class MapPagePassenger extends StatelessWidget {
const VipRideBeginPassenger(),
const RideFromStartApp(),
PointsPageForRider(),
],
),
),
@@ -162,8 +161,7 @@ class CancelRidePageShow extends StatelessWidget {
return showCancelButton
? Positioned(
right: box.read(BoxName.lang) == 'ar' ? 10 : null,
left: box.read(BoxName.lang) != 'ar' ? 10 : null,
right: 10,
top: Get.height * .013,
child: GestureDetector(
onTap: () {
@@ -165,11 +165,15 @@ class MyCreditCardWidget extends StatelessWidget {
),
SizedBox(
width: Get.width * .25,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.centerStart,
child: Text(
'Card Number'.tr,
style: AppStyle.title,
),
),
),
SizedBox(
width: Get.width * .03,
),
@@ -210,11 +214,15 @@ class MyCreditCardWidget extends StatelessWidget {
),
SizedBox(
width: Get.width * .25,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.centerStart,
child: Text(
'Holder Name',
'Holder Name'.tr,
style: AppStyle.title,
),
),
),
SizedBox(
width: Get.width * .03,
),
@@ -257,11 +265,15 @@ class MyCreditCardWidget extends StatelessWidget {
children: [
SizedBox(
width: Get.width * .2,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.centerStart,
child: Text(
'Expiry Date',
'Expiry Date'.tr,
style: AppStyle.subtitle,
),
),
),
SizedBox(
width: Get.width * .1,
child: SizedBox(
@@ -300,11 +312,15 @@ class MyCreditCardWidget extends StatelessWidget {
children: [
SizedBox(
width: Get.width * .2,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.centerStart,
child: Text(
'CVV Code',
'CVV Code'.tr,
style: AppStyle.subtitle,
),
),
),
SizedBox(
width: Get.width * .2,
child: SizedBox(