6/1/2
This commit is contained in:
@@ -4,7 +4,7 @@ class AppColor {
|
||||
static const Color primaryColor = Colors.black; // Slightly softer red
|
||||
static const Color secondaryColor = Color.fromARGB(255, 255, 255, 255);
|
||||
static const Color accentColor =
|
||||
Color.fromARGB(255, 185, 169, 169); // Google Green
|
||||
Color.fromARGB(255, 231, 84, 84); // Google Green
|
||||
static const Color backgroundColor =
|
||||
Color(0xFFF5F5F5); // Light grey background
|
||||
static const Color redColor = Color(0xFFEA4335); // Google Red
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:SEFER/constant/box_name.dart';
|
||||
import 'package:SEFER/main.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'colors.dart';
|
||||
|
||||
class AppStyle {
|
||||
@@ -8,22 +9,30 @@ class AppStyle {
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 40,
|
||||
color: AppColor.accentColor,
|
||||
fontFamily: box.read(BoxName.lang) == 'ar' ? 'mohanad' : 'josefin');
|
||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||
? 'mohanad'
|
||||
: GoogleFonts.josefinSans().fontFamily);
|
||||
static TextStyle headTitle2 = TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 26,
|
||||
color: AppColor.primaryColor,
|
||||
fontFamily: box.read(BoxName.lang) == 'ar' ? 'mohanad' : 'josefin');
|
||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||
? 'mohanad'
|
||||
: GoogleFonts.josefinSans().fontFamily);
|
||||
static TextStyle title = TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal,
|
||||
fontSize: box.read(BoxName.lang) == 'ar' ? 14 : 16,
|
||||
color: AppColor.primaryColor,
|
||||
fontFamily: box.read(BoxName.lang) == 'ar' ? 'mohanad' : 'josefin');
|
||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||
? 'mohanad'
|
||||
: GoogleFonts.josefinSans().fontFamily);
|
||||
static TextStyle subtitle = TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 13,
|
||||
color: AppColor.primaryColor,
|
||||
fontFamily: box.read(BoxName.lang) == 'ar' ? 'mohanad' : 'josefin');
|
||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||
? 'mohanad'
|
||||
: GoogleFonts.josefinSans().fontFamily);
|
||||
static TextStyle number = const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 14,
|
||||
@@ -31,22 +40,16 @@ class AppStyle {
|
||||
fontFamily: 'digit');
|
||||
|
||||
static BoxDecoration boxDecoration = const BoxDecoration(
|
||||
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||
color: AppColor.secondaryColor,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColor.accentColor,
|
||||
offset: Offset(-3, -3),
|
||||
blurRadius: 0,
|
||||
spreadRadius: 0,
|
||||
blurStyle: BlurStyle.outer),
|
||||
color: AppColor.accentColor, blurRadius: 5, offset: Offset(2, 4)),
|
||||
BoxShadow(
|
||||
color: AppColor.accentColor,
|
||||
offset: Offset(3, 3),
|
||||
blurRadius: 0,
|
||||
spreadRadius: 0,
|
||||
blurStyle: BlurStyle.outer)
|
||||
]);
|
||||
color: AppColor.accentColor, blurRadius: 5, offset: Offset(-2, -2))
|
||||
],
|
||||
color: AppColor.secondaryColor,
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.elliptical(15, 30),
|
||||
));
|
||||
static BoxDecoration boxDecoration1 = const BoxDecoration(
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
|
||||
@@ -4,6 +4,8 @@ class MyTranslation extends Translations {
|
||||
@override
|
||||
Map<String, Map<String, String>> get keys => {
|
||||
"ar": {
|
||||
"You must restart the app to change the language.":
|
||||
"يجب إعادة تشغيل التطبيق لتغيير اللغة",
|
||||
"joined": "انضم",
|
||||
"Driver joined the channel": "السائق انضم للقناة",
|
||||
"Driver left the channel": "السائق غادر القناة",
|
||||
|
||||
Reference in New Issue
Block a user