66 lines
1.9 KiB
Dart

import 'package:flutter/material.dart';
class AppTheme {
static const navy = Color(0xFF101D42);
static const blue = Color(0xFF2B59FF);
static const mint = Color(0xFF34D6A0);
static const background = Color(0xFFF6F8FC);
static ThemeData get light {
final scheme = ColorScheme.fromSeed(
seedColor: blue,
primary: blue,
secondary: mint,
surface: Colors.white,
);
return ThemeData(
useMaterial3: true,
colorScheme: scheme,
scaffoldBackgroundColor: background,
fontFamily: 'Roboto',
appBarTheme: const AppBarTheme(
backgroundColor: background,
foregroundColor: navy,
elevation: 0,
centerTitle: false,
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: Colors.white,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(16),
borderSide: BorderSide.none,
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(16),
borderSide: const BorderSide(color: Color(0xFFE5EAF3)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(16),
borderSide: const BorderSide(color: blue, width: 1.5),
),
contentPadding: const EdgeInsets.symmetric(
horizontal: 18,
vertical: 16,
),
),
cardTheme: CardThemeData(
color: Colors.white,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
side: const BorderSide(color: Color(0xFFE9EDF5)),
),
),
filledButtonTheme: FilledButtonThemeData(
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(54),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
),
),
),
);
}
}