Initial commit - app-padrao-1.0
This commit is contained in:
115
lib/core/theme/app_theme.dart
Normal file
115
lib/core/theme/app_theme.dart
Normal file
@@ -0,0 +1,115 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class AppColors {
|
||||
// Cores Base - Premium Cyber Gold
|
||||
static Color primaryColor = const Color(0xFFD4AF37);
|
||||
static const Color background = Color(0xFF080808); // Ultra Dark
|
||||
static const Color surface = Color(0xFF121212);
|
||||
static const Color surfaceLight = Color(0xFF1C1C1C);
|
||||
|
||||
// Cores Semânticas
|
||||
static const Color success = Color(0xFF00C853);
|
||||
static const Color error = Color(0xFFFF1744);
|
||||
static const Color warning = Color(0xFFFFAB00);
|
||||
static const Color info = Color(0xFF2979FF);
|
||||
|
||||
// Texto
|
||||
static const Color textPrimary = Colors.white;
|
||||
static const Color textSecondary = Color(0xFF8E8E93);
|
||||
|
||||
static void updatePrimaryColor(Color color) {
|
||||
primaryColor = color;
|
||||
}
|
||||
|
||||
static List<BoxShadow> get premiumShadow => [
|
||||
BoxShadow(
|
||||
color: Colors.black.withAlpha(50),
|
||||
blurRadius: 30,
|
||||
offset: const Offset(0, 15),
|
||||
),
|
||||
];
|
||||
|
||||
static LinearGradient get goldGradient => LinearGradient(
|
||||
colors: [primaryColor, primaryColor.withAlpha(200)],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
}
|
||||
|
||||
class AppTheme {
|
||||
static ThemeData get darkTheme {
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
brightness: Brightness.dark,
|
||||
scaffoldBackgroundColor: AppColors.background,
|
||||
primaryColor: AppColors.primaryColor,
|
||||
colorScheme: ColorScheme.dark(
|
||||
primary: AppColors.primaryColor,
|
||||
surface: AppColors.surface,
|
||||
error: AppColors.error,
|
||||
onPrimary: Colors.black,
|
||||
),
|
||||
|
||||
textTheme: GoogleFonts.outfitTextTheme(ThemeData.dark().textTheme)
|
||||
.copyWith(
|
||||
displayLarge: GoogleFonts.outfit(
|
||||
color: AppColors.textPrimary,
|
||||
fontWeight: FontWeight.w900,
|
||||
fontSize: 34,
|
||||
letterSpacing: -1,
|
||||
),
|
||||
headlineMedium: GoogleFonts.outfit(
|
||||
color: AppColors.textPrimary,
|
||||
fontWeight: FontWeight.w800,
|
||||
letterSpacing: -0.5,
|
||||
),
|
||||
bodyLarge: GoogleFonts.inter(
|
||||
color: AppColors.textPrimary,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
|
||||
appBarTheme: AppBarTheme(
|
||||
backgroundColor: Colors.transparent,
|
||||
elevation: 0,
|
||||
centerTitle: false,
|
||||
titleTextStyle: GoogleFonts.outfit(
|
||||
color: AppColors.textPrimary,
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.w900,
|
||||
),
|
||||
),
|
||||
|
||||
cardTheme: CardThemeData(
|
||||
color: AppColors.surface,
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(28),
|
||||
side: BorderSide(color: Colors.white.withAlpha(10), width: 1),
|
||||
),
|
||||
),
|
||||
|
||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppColors.primaryColor,
|
||||
foregroundColor: Colors.black,
|
||||
elevation: 10,
|
||||
shadowColor: AppColors.primaryColor.withAlpha(100),
|
||||
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 30),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
),
|
||||
textStyle: GoogleFonts.outfit(
|
||||
fontWeight: FontWeight.w900,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static ThemeData get lightTheme =>
|
||||
darkTheme; // For simplicity, focusing on Dark Mode Elite
|
||||
}
|
||||
Reference in New Issue
Block a user