| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import 'package:flutter/material.dart';
- import 'app_colors.dart';
- class AppTheme {
- AppTheme._();
- static ThemeData get light {
- final colorScheme = ColorScheme.fromSeed(
- seedColor: AppColors.primary,
- brightness: Brightness.light,
- );
- return ThemeData(
- useMaterial3: true,
- colorScheme: colorScheme,
- scaffoldBackgroundColor: AppColors.background,
- appBarTheme: const AppBarTheme(
- backgroundColor: AppColors.primary,
- foregroundColor: Colors.white,
- elevation: 0,
- centerTitle: false,
- titleTextStyle: TextStyle(
- fontSize: 18,
- fontWeight: FontWeight.w600,
- color: Colors.white,
- ),
- ),
- cardTheme: CardThemeData(
- color: AppColors.cardWhite,
- elevation: 1,
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
- ),
- elevatedButtonTheme: ElevatedButtonThemeData(
- style: ElevatedButton.styleFrom(
- backgroundColor: AppColors.primary,
- foregroundColor: Colors.white,
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
- minimumSize: const Size(double.infinity, 48),
- textStyle: const TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
- ),
- ),
- outlinedButtonTheme: OutlinedButtonThemeData(
- style: OutlinedButton.styleFrom(
- foregroundColor: AppColors.textPrimary,
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
- minimumSize: const Size(double.infinity, 48),
- side: const BorderSide(color: Color(0xFFDDDDDD)),
- textStyle: const TextStyle(fontSize: 15),
- ),
- ),
- );
- }
- }
|