Upload files to "Source Code Mobile"

This commit is contained in:
Dwikyyy 2026-07-30 12:50:05 +07:00
parent 90f3fadded
commit 154d221aa3
3 changed files with 69 additions and 0 deletions

View File

@ -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
}

View File

@ -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';
}

View File

@ -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,
),
);
}
}