From 154d221aa3ce1b6d9a3421415cc29f868b2be041 Mon Sep 17 00:00:00 2001 From: Dwikyyy Date: Thu, 30 Jul 2026 12:50:05 +0700 Subject: [PATCH] Upload files to "Source Code Mobile" --- Source Code Mobile/app_color.dart | 11 ++++++++ Source Code Mobile/app_routes.dart | 17 +++++++++++++ Source Code Mobile/app_theme.dart | 41 ++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 Source Code Mobile/app_color.dart create mode 100644 Source Code Mobile/app_routes.dart create mode 100644 Source Code Mobile/app_theme.dart diff --git a/Source Code Mobile/app_color.dart b/Source Code Mobile/app_color.dart new file mode 100644 index 0000000..03fcd6f --- /dev/null +++ b/Source Code Mobile/app_color.dart @@ -0,0 +1,11 @@ +import 'package:flutter/material.dart'; + +class AppColor { + static const primary = Color(0xFF3B82F6); // Modern slate blue accent + static const secondary = Color(0xFF64748B); // Slate gray + static const danger = Color(0xFFEF4444); // Vibrant Red + static const warning = Color(0xFFF59E0B); // Vibrant Amber + static const success = Color(0xFF10B981); // Emerald Green + static const background = Color(0xFF0F172A); // Slate 900 Background + static const cardBg = Color(0xFF1E293B); // Slate 800 Card background +} diff --git a/Source Code Mobile/app_routes.dart b/Source Code Mobile/app_routes.dart new file mode 100644 index 0000000..462f2a0 --- /dev/null +++ b/Source Code Mobile/app_routes.dart @@ -0,0 +1,17 @@ +class AppRoutes { + static const splash = '/splash'; + + static const login = '/login'; + + static const register = '/register'; + + static const dashboard = '/dashboard'; + + static const ac = '/ac'; + + static const history = '/history'; + + static const notification = '/notification'; + + static const profile = '/profile'; +} diff --git a/Source Code Mobile/app_theme.dart b/Source Code Mobile/app_theme.dart new file mode 100644 index 0000000..62d32ed --- /dev/null +++ b/Source Code Mobile/app_theme.dart @@ -0,0 +1,41 @@ +import 'package:flutter/material.dart'; +import 'app_color.dart'; + +class AppTheme { + static ThemeData get darkTheme { + return ThemeData( + useMaterial3: true, + brightness: Brightness.dark, + scaffoldBackgroundColor: AppColor.background, + colorScheme: const ColorScheme.dark( + primary: AppColor.primary, + secondary: AppColor.secondary, + surface: AppColor.cardBg, + error: AppColor.danger, + ), + cardTheme: const CardThemeData( + color: AppColor.cardBg, + elevation: 0, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(16)), + ), + ), + appBarTheme: const AppBarTheme( + centerTitle: true, + backgroundColor: AppColor.background, + elevation: 0, + titleTextStyle: TextStyle( + color: Colors.white, + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + bottomNavigationBarTheme: const BottomNavigationBarThemeData( + backgroundColor: AppColor.cardBg, + selectedItemColor: AppColor.primary, + unselectedItemColor: Colors.grey, + elevation: 8, + ), + ); + } +}