Update: 2026-06-10 02:44:54
This commit is contained in:
@@ -51,6 +51,7 @@ class BoxName {
|
||||
static const String package = "package";
|
||||
static const String isInstall = "isInstall";
|
||||
static const String isGiftToken = "isGiftToken";
|
||||
static const String isClaim = "isClaim";
|
||||
static const String inviteCode = "inviteCode";
|
||||
static const String phoneWallet = "phoneWallet";
|
||||
static const String phoneDriver = "phoneDriver";
|
||||
|
||||
@@ -4,63 +4,31 @@ import 'package:get/get.dart';
|
||||
/// The palette is professionally designed to be modern, cohesive, and culturally
|
||||
/// relevant, inspired by the Syrian flag and the app's brand identity.
|
||||
class AppColor {
|
||||
// --- Core Brand Colors (Inspired by the Syrian Flag) ---
|
||||
// --- Core Brand Colors ---
|
||||
static const Color primaryColor = Color(0xFF1A2340); // Navy Blue
|
||||
static const Color secondaryColorStatic = Color(0xFF8C9CF8); // Periwinkle Blue
|
||||
static const Color accentColor = Color(0xFF8C9CF8);
|
||||
|
||||
/// **Primary Color:** The brand's signature Twitter Blue representing trust and modern communication.
|
||||
/// Ideal for app bars, primary buttons, and major UI elements.
|
||||
static const Color primaryColor = Color(0xFF1DA1F2);
|
||||
|
||||
/// **Text/Write Color:** A very dark, near-black color for main text.
|
||||
/// It's softer on the eyes than pure black, improving readability.
|
||||
/// The variable name `writeColor` is kept as requested.
|
||||
static Color get writeColor => Get.isDarkMode ? Colors.white : const Color(0xFF1A1A1A);
|
||||
|
||||
/// **Secondary Color:** Pure white, used for backgrounds to create a clean
|
||||
/// and spacious look, ensuring content stands out.
|
||||
static Color get secondaryColor => Get.isDarkMode ? const Color(0xFF1E1E1E) : Colors.white;
|
||||
|
||||
/// **Accent Color:** A vibrant, energetic red from the Syrian flag.
|
||||
/// Perfect for calls-to-action, highlights, icons, and notifications.
|
||||
static const Color accentColor = Color.fromARGB(255, 148, 140, 141);
|
||||
// --- Dynamic Colors (Light / Dark Mode Support) ---
|
||||
static Color get writeColor => Get.isDarkMode ? Colors.white : const Color(0xFF0F172A); // Primary Text
|
||||
static Color get secondaryColor => Get.isDarkMode ? const Color(0xFF1E1E1E) : const Color(0xFFF8FAFC); // Background
|
||||
static Color get cardColor => Get.isDarkMode ? const Color(0xFF2C2C2E) : const Color(0xFFFFFFFF); // Card Background
|
||||
|
||||
// --- Neutral & Status Colors ---
|
||||
static Color get grayColor => Get.isDarkMode ? Colors.grey[400]! : const Color(0xFF64748B); // Secondary Text
|
||||
static Color get borderColor => Get.isDarkMode ? const Color(0xFF3A3A3C) : const Color(0xFFE2E8F0); // Border
|
||||
|
||||
/// **Grey Color:** A neutral grey for secondary text, borders, dividers,
|
||||
/// and disabled states.
|
||||
static Color get grayColor => Get.isDarkMode ? Colors.grey[400]! : const Color(0xFF8E8E93);
|
||||
static const Color redColor = Color(0xFFEF4444); // Error
|
||||
static const Color greenColor = Color(0xFF22C55E); // Success
|
||||
static const Color yellowColor = Color(0xFFF59E0B); // Warning
|
||||
|
||||
/// **Red Color (Error):** A clear, attention-grabbing red for error messages and alerts.
|
||||
static const Color redColor = Color(0xFFD32F2F);
|
||||
|
||||
/// **Green Color (Success):** A positive green for success messages and confirmations.
|
||||
static const Color greenColor = Color(0xFF388E3C);
|
||||
|
||||
/// **Blue Color (Info):** A standard blue for informational text, links, or icons.
|
||||
static const Color blueColor = Color(0xFF108942);
|
||||
|
||||
/// **Yellow Color (Warning):** A warm yellow for warning messages or important highlights.
|
||||
static const Color yellowColor = Color(0xFFFFA000);
|
||||
|
||||
// --- Tier & Social Colors ---
|
||||
|
||||
/// **Gold Tier:** A bright gold for premium features, user ranks, or rewards.
|
||||
// --- Legacy / Maps Colors (Kept for compatibility) ---
|
||||
static const Color blueColor = Color(0xFF1A2340);
|
||||
static const Color gold = Color(0xFFFFD700);
|
||||
|
||||
/// **Bronze Tiers:** Classic bronze colors for other user tiers or levels.
|
||||
static const Color bronze = Color(0xFFCD7F32);
|
||||
static const Color goldenBronze = Color(0xFFB87333); // Kept from original
|
||||
|
||||
/// **Twitter/X Color:** The official brand color for social login buttons.
|
||||
|
||||
/// **Twitter Blue:** The brand's signature blue color used for the drawer,
|
||||
/// menu icons, and secondary actions (formerly Cyan Blue).
|
||||
static Color get cyanBlue => const Color(0xFF1DA1F2);
|
||||
|
||||
/// **Blue Accent:** A softer, translucent version of the brand blue.
|
||||
static Color get cyanAccent => const Color(0xFF1DA1F2).withOpacity(0.12);
|
||||
|
||||
// --- Utility Colors ---
|
||||
|
||||
/// **Accent Tint:** A transparent version of the red accent color.
|
||||
static Color get deepPurpleAccent => const Color(0xFFCE1126).withOpacity(0.1);
|
||||
static const Color goldenBronze = Color(0xFFB87333);
|
||||
|
||||
static Color get cyanBlue => const Color(0xFF1A2340);
|
||||
static Color get cyanAccent => const Color(0xFF1A2340).withOpacity(0.12);
|
||||
static Color get deepPurpleAccent => const Color(0xFF8C9CF8).withOpacity(0.1);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:siro_rider/constant/box_name.dart';
|
||||
import 'package:siro_rider/main.dart';
|
||||
|
||||
class AppLink {
|
||||
static const String appDomain = 'siromove.com';
|
||||
///https://walletintaleq.intaleq.xyz/v1/main
|
||||
static String paymentServer = 'https://walletintaleq.intaleq.xyz/v2/main';
|
||||
|
||||
@@ -177,7 +178,9 @@ class AppLink {
|
||||
static String deleteNotificationCaptain =
|
||||
"$server/ride/notificationCaptain/delete.php";
|
||||
//-----------------invitor------------------
|
||||
|
||||
static String getUnifiedCode = "$server/ride/invitor/get_unified_code.php";
|
||||
static String addUnifiedInvite = "$server/ride/invitor/add_unified_invite.php";
|
||||
static String getPassengerReferrals = "$server/ride/invitor/get_passenger_referrals.php";
|
||||
static String addInviteDriver = "$server/ride/invitor/add.php";
|
||||
static String addInvitationPassenger =
|
||||
"$server/ride/invitor/addInvitationPassenger.php";
|
||||
|
||||
Reference in New Issue
Block a user