Files

51 lines
1.5 KiB
Dart

import 'package:flutter/material.dart';
class AppTheme {
AppTheme._();
static const _brandColor = Color(0xFF087F76);
static ThemeData get light {
final colorScheme = ColorScheme.fromSeed(
seedColor: _brandColor,
brightness: Brightness.light,
);
return ThemeData(
useMaterial3: true,
colorScheme: colorScheme,
scaffoldBackgroundColor: const Color(0xFFF6F8F9),
appBarTheme: const AppBarTheme(
centerTitle: false,
backgroundColor: Color(0xFFF6F8F9),
surfaceTintColor: Colors.transparent,
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: Colors.white,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFFD7DEDF)),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFFD7DEDF)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: _brandColor, width: 2),
),
),
filledButtonTheme: FilledButtonThemeData(
style: FilledButton.styleFrom(
minimumSize: const Size.fromHeight(52),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
textStyle: const TextStyle(fontWeight: FontWeight.w600),
),
),
);
}
}