60 lines
2.0 KiB
Dart
60 lines
2.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
const kPrimaryBlue = Color(0xFF4FC3F7);
|
|
const kAccentGreen = Color(0xFFA5D6A7);
|
|
const kDarkBlue = Color(0xFF1976D2);
|
|
const kBackground = Color(0xFFF5F5F5);
|
|
const kCardBackground = Colors.white;
|
|
|
|
final appTheme = ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: kPrimaryBlue,
|
|
primary: kPrimaryBlue,
|
|
secondary: kAccentGreen,
|
|
background: kBackground,
|
|
),
|
|
scaffoldBackgroundColor: kBackground,
|
|
appBarTheme: const AppBarTheme(
|
|
backgroundColor: kPrimaryBlue,
|
|
foregroundColor: Colors.white,
|
|
elevation: 0,
|
|
centerTitle: true,
|
|
titleTextStyle: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: kPrimaryBlue,
|
|
foregroundColor: Colors.white,
|
|
minimumSize: const Size(double.infinity, 52),
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
|
|
textStyle: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
|
),
|
|
),
|
|
inputDecorationTheme: InputDecorationTheme(
|
|
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
|
|
focusedBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(12),
|
|
borderSide: const BorderSide(color: kPrimaryBlue, width: 2),
|
|
),
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
|
),
|
|
cardTheme: CardThemeData(
|
|
elevation: 3,
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
|
color: kCardBackground,
|
|
),
|
|
textTheme: const TextTheme(
|
|
headlineMedium: TextStyle(
|
|
color: kDarkBlue, fontWeight: FontWeight.bold, fontSize: 24),
|
|
titleLarge:
|
|
TextStyle(color: kDarkBlue, fontWeight: FontWeight.w600, fontSize: 18),
|
|
bodyLarge: TextStyle(color: Color(0xFF333333), fontSize: 16),
|
|
bodyMedium: TextStyle(color: Color(0xFF555555), fontSize: 14),
|
|
),
|
|
);
|