6/8/1
This commit is contained in:
@@ -1,31 +1,28 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AppColor {
|
class AppColor {
|
||||||
static const Color primaryColor = Colors.black; // Slightly softer red
|
static const Color primaryColor = Color(0xFF1DA1F2);
|
||||||
static const Color secondaryColor = Color.fromARGB(255, 255, 255, 255);
|
static const Color writeColor = Color(0xFF333333);
|
||||||
static const Color accentColor =
|
static const Color secondaryColor = Colors.white;
|
||||||
Color.fromARGB(255, 231, 84, 84); // Google Green
|
static const Color accentColor = Colors.grey;
|
||||||
static const Color backgroundColor =
|
static const Color greyColor = Colors.grey;
|
||||||
Color(0xFFF5F5F5); // Light grey background
|
static const Color twitterColor = Color(0xFF1DA1F2); // Twitter blue
|
||||||
|
|
||||||
static const Color redColor = Color(0xFFEA4335); // Google Red
|
static const Color redColor = Color(0xFFEA4335); // Google Red
|
||||||
static const Color greenColor = Color(0xFF34A853); // Google Green
|
static const Color greenColor = Color(0xFF34A853); // Google Green
|
||||||
static const Color blueColor = Color(0xFF4285F4); // Google Blue
|
static const Color blueColor = Color(0xFF1DA1F2); // Google Blue
|
||||||
static const Color yellowColor = Color(0xFFFBBC05); // Google Yellow
|
static const Color yellowColor = Color(0xFFFBBC05); // Google Yellow
|
||||||
static Color deepPurpleAccent =
|
static Color deepPurpleAccent =
|
||||||
const Color.fromARGB(255, 123, 76, 254).withOpacity(0.3);
|
const Color.fromARGB(255, 123, 76, 254).withOpacity(0.3);
|
||||||
static const Color greyColor =
|
|
||||||
Color(0xFF9E9E9E); // Light grey for text and dividers
|
|
||||||
static const Color darkGreyColor =
|
|
||||||
Color(0xFF333333); // Dark grey for headings
|
|
||||||
|
|
||||||
// For dynamic elements like gradients
|
// For dynamic elements like gradients
|
||||||
static List<Color> gradientStartEnd = [
|
static List<Color> gradientStartEnd = [
|
||||||
const Color(0xFFD81F26), // Start with primary color
|
const Color(0xFF1DA1F2), // Start with primary color
|
||||||
const Color(0xFFEF5350), // End with a slightly darker shade
|
const Color(0xFF0C7ABF), // End with a slightly darker shade of Twitter blue
|
||||||
];
|
];
|
||||||
|
|
||||||
static List<Color> secondaryGradientStartEnd = [
|
static List<Color> secondaryGradientStartEnd = [
|
||||||
const Color(0xFF34A853), // Start with green
|
const Color(0xFF1DA1F2), // Start with Twitter blue
|
||||||
const Color(0xFF4CAF50), // End with a slightly darker shade of green
|
const Color(0xFF0C7ABF), // End with a slightly darker shade of Twitter blue
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,28 +15,28 @@ class AppStyle {
|
|||||||
static TextStyle headTitle2 = TextStyle(
|
static TextStyle headTitle2 = TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 26,
|
fontSize: 26,
|
||||||
color: AppColor.primaryColor,
|
color: AppColor.writeColor,
|
||||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||||
? 'mohanad'
|
? 'mohanad'
|
||||||
: GoogleFonts.josefinSans().fontFamily);
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
static TextStyle title = TextStyle(
|
static TextStyle title = TextStyle(
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontSize: box.read(BoxName.lang) == 'ar' ? 14 : 16,
|
fontSize: box.read(BoxName.lang) == 'ar' ? 14 : 16,
|
||||||
color: AppColor.primaryColor,
|
color: AppColor.writeColor,
|
||||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||||
? 'mohanad'
|
? 'mohanad'
|
||||||
: GoogleFonts.josefinSans().fontFamily);
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
static TextStyle subtitle = TextStyle(
|
static TextStyle subtitle = TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: AppColor.primaryColor,
|
color: AppColor.writeColor,
|
||||||
fontFamily: box.read(BoxName.lang) == 'ar'
|
fontFamily: box.read(BoxName.lang) == 'ar'
|
||||||
? 'mohanad'
|
? 'mohanad'
|
||||||
: GoogleFonts.josefinSans().fontFamily);
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
static TextStyle number = const TextStyle(
|
static TextStyle number = const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: AppColor.primaryColor,
|
color: AppColor.writeColor,
|
||||||
fontFamily: 'digit');
|
fontFamily: 'digit');
|
||||||
|
|
||||||
static BoxDecoration boxDecoration = const BoxDecoration(
|
static BoxDecoration boxDecoration = const BoxDecoration(
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class MapDriverController extends GetxController {
|
|||||||
bool isRideFinished = false;
|
bool isRideFinished = false;
|
||||||
bool isRideStarted = false;
|
bool isRideStarted = false;
|
||||||
bool isPriceWindow = false;
|
bool isPriceWindow = false;
|
||||||
double passengerInfoWindowHeight = Get.height * .35;
|
double passengerInfoWindowHeight = Get.height * .38;
|
||||||
double driverEndPage = 100;
|
double driverEndPage = 100;
|
||||||
double progress = 0;
|
double progress = 0;
|
||||||
double progressToPassenger = 0;
|
double progressToPassenger = 0;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ class MyTranslation extends Translations {
|
|||||||
@override
|
@override
|
||||||
Map<String, Map<String, String>> get keys => {
|
Map<String, Map<String, String>> get keys => {
|
||||||
"ar": {
|
"ar": {
|
||||||
|
"No data yet!": "ccc",
|
||||||
"fromBudget": "من الميزانية",
|
"fromBudget": "من الميزانية",
|
||||||
"You must restart the app to change the language.":
|
"You must restart the app to change the language.":
|
||||||
"يجب إعادة تشغيل التطبيق لتغيير اللغة",
|
"يجب إعادة تشغيل التطبيق لتغيير اللغة",
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ class UserAccountHeader extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
box.read(BoxName.nameDriver).toString(),
|
box.read(BoxName.nameDriver).toString(),
|
||||||
style: AppStyle.title.copyWith(color: AppColor.backgroundColor),
|
style: AppStyle.title.copyWith(color: AppColor.secondaryColor),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Column(
|
Column(
|
||||||
@@ -172,7 +172,7 @@ class UserAccountHeader extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
box.read(BoxName.emailDriver),
|
box.read(BoxName.emailDriver),
|
||||||
style: AppStyle.title.copyWith(color: AppColor.backgroundColor),
|
style: AppStyle.title.copyWith(color: AppColor.secondaryColor),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
currentAccountPicture:
|
currentAccountPicture:
|
||||||
|
|||||||
@@ -174,8 +174,9 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
|||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: Get.width * .9,
|
width: Get.width * .9,
|
||||||
|
child: Center(
|
||||||
child: LinearProgressIndicator(
|
child: LinearProgressIndicator(
|
||||||
backgroundColor: AppColor.accentColor,
|
backgroundColor: AppColor.greyColor,
|
||||||
color: mapDriverController
|
color: mapDriverController
|
||||||
.remainingTimeTimerRideBegin <
|
.remainingTimeTimerRideBegin <
|
||||||
60
|
60
|
||||||
@@ -188,6 +189,7 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
|||||||
.toDouble(),
|
.toDouble(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
mapDriverController
|
mapDriverController
|
||||||
|
|||||||
@@ -31,13 +31,13 @@ class PassengerInfoWindow extends StatelessWidget {
|
|||||||
// left: 8,
|
// left: 8,
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
height: controller.passengerInfoWindowHeight,
|
height: Get.height * .4,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
decoration: AppStyle.boxDecoration1,
|
decoration: AppStyle.boxDecoration1,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
DefaultTextStyle(
|
DefaultTextStyle(
|
||||||
@@ -197,7 +197,7 @@ class PassengerInfoWindow extends StatelessWidget {
|
|||||||
60
|
60
|
||||||
? AppColor.redColor
|
? AppColor.redColor
|
||||||
: AppColor.greenColor,
|
: AppColor.greenColor,
|
||||||
minHeight: 35,
|
minHeight: 25,
|
||||||
borderRadius: BorderRadius.circular(15),
|
borderRadius: BorderRadius.circular(15),
|
||||||
value: controller.progressToPassenger
|
value: controller.progressToPassenger
|
||||||
.toDouble(),
|
.toDouble(),
|
||||||
@@ -304,13 +304,13 @@ class PassengerInfoWindow extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
LinearProgressIndicator(
|
LinearProgressIndicator(
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
AppColor.accentColor,
|
AppColor.greyColor,
|
||||||
color: controller
|
color: controller
|
||||||
.remainingTimeInPassengerLocatioWait <
|
.remainingTimeInPassengerLocatioWait <
|
||||||
60
|
60
|
||||||
? AppColor.redColor
|
? AppColor.redColor
|
||||||
: AppColor.greenColor,
|
: AppColor.greenColor,
|
||||||
minHeight: 50,
|
minHeight: 25,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
15),
|
15),
|
||||||
|
|||||||
Reference in New Issue
Block a user