initial commit
This commit is contained in:
74
lib/theme/app_theme.dart
Normal file
74
lib/theme/app_theme.dart
Normal file
@@ -0,0 +1,74 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppTheme {
|
||||
static const _primaryColor = Color(0xFFD4AF37); // Gold
|
||||
static const _secondaryColor = Color(0xFF8B0000); // Dark Red
|
||||
static const _tertiaryColor = Color(0xFF000000); // Black
|
||||
static const _backgroundColor = Color(0xFFFFFBFE);
|
||||
static const _surfaceColor = Color(0xFFFFFBFE);
|
||||
static const _errorColor = Color(0xFFB3261E);
|
||||
|
||||
static final ThemeData lightTheme = ThemeData(
|
||||
useMaterial3: true,
|
||||
colorScheme: ColorScheme.light(
|
||||
primary: _primaryColor,
|
||||
secondary: _secondaryColor,
|
||||
tertiary: _tertiaryColor,
|
||||
background: _backgroundColor,
|
||||
surface: _surfaceColor,
|
||||
error: _errorColor,
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: _backgroundColor,
|
||||
elevation: 0,
|
||||
centerTitle: true,
|
||||
iconTheme: IconThemeData(color: _primaryColor),
|
||||
titleTextStyle: TextStyle(
|
||||
color: _primaryColor,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
navigationBarTheme: NavigationBarThemeData(
|
||||
backgroundColor: _surfaceColor,
|
||||
indicatorColor: _primaryColor.withOpacity(0.1),
|
||||
labelTextStyle: MaterialStateProperty.all(
|
||||
const TextStyle(fontSize: 12, fontWeight: FontWeight.w500),
|
||||
),
|
||||
),
|
||||
cardTheme: CardTheme(
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
),
|
||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||
style: ElevatedButton.styleFrom(
|
||||
elevation: 0,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
|
||||
backgroundColor: _primaryColor,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
filled: true,
|
||||
fillColor: _surfaceColor,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide.none,
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide.none,
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: const BorderSide(color: _primaryColor),
|
||||
),
|
||||
errorBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: const BorderSide(color: _errorColor),
|
||||
),
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user