init
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppTheme {
|
||||
static const Color primaryDark = Color(0xFF0F172A);
|
||||
static const Color primaryBlue = Color(0xFF2563EB);
|
||||
static const Color accentBlue = Color(0xFF3B82F6);
|
||||
static const Color lightBlueBg = Color(0xFFEFF6FF);
|
||||
static const Color backgroundLight = Color(0xFFF8FAFC);
|
||||
static const Color cardBorder = Color(0xFFE2E8F0);
|
||||
static const Color textPrimary = Color(0xFF0F172A);
|
||||
static const Color textSecondary = Color(0xFF64748B);
|
||||
static const Color textMuted = Color(0xFF94A3B8);
|
||||
|
||||
static ThemeData get lightTheme {
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
scaffoldBackgroundColor: backgroundLight,
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: primaryBlue,
|
||||
primary: primaryBlue,
|
||||
secondary: primaryDark,
|
||||
surface: Colors.white,
|
||||
),
|
||||
fontFamily: 'Roboto',
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: Colors.white,
|
||||
elevation: 0,
|
||||
scrolledUnderElevation: 0,
|
||||
iconTheme: IconThemeData(color: textPrimary),
|
||||
titleTextStyle: TextStyle(
|
||||
color: textPrimary,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
cardTheme: CardThemeData(
|
||||
color: Colors.white,
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
side: const BorderSide(color: cardBorder, width: 1),
|
||||
),
|
||||
),
|
||||
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
|
||||
backgroundColor: Colors.white,
|
||||
selectedItemColor: primaryBlue,
|
||||
unselectedItemColor: textSecondary,
|
||||
selectedLabelStyle: TextStyle(fontSize: 12, fontWeight: FontWeight.w600),
|
||||
unselectedLabelStyle: TextStyle(fontSize: 12, fontWeight: FontWeight.w500),
|
||||
type: BottomNavigationBarType.fixed,
|
||||
elevation: 10,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user