Files
mobile-app/lib/core/theme/app_theme.dart

125 lines
3.6 KiB
Dart
Raw Permalink Normal View History

import 'package:flutter/material.dart';
import 'package:real_estate_mobile/core/constants/app_colors.dart';
class AppTheme {
AppTheme._();
static ThemeData get light {
return ThemeData(
useMaterial3: true,
fontFamily: 'Fractul',
scaffoldBackgroundColor: AppColors.white,
colorScheme: ColorScheme.fromSeed(
seedColor: AppColors.primaryDark,
primary: AppColors.primaryDark,
secondary: AppColors.accentOrange,
surface: AppColors.white,
error: AppColors.error,
),
textTheme: const TextTheme(
headlineLarge: TextStyle(
fontFamily: 'Fractul',
fontSize: 30,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
),
headlineMedium: TextStyle(
fontFamily: 'Fractul',
fontSize: 25,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
),
titleMedium: TextStyle(
fontFamily: 'Fractul',
fontSize: 16,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
),
bodyMedium: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w300,
color: AppColors.primaryDark,
),
bodySmall: TextStyle(
fontFamily: 'Fractul',
fontSize: 12,
fontWeight: FontWeight.w300,
color: AppColors.hintText,
),
labelLarge: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w700,
color: AppColors.primaryDark,
),
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: Colors.white,
contentPadding: const EdgeInsets.symmetric(
horizontal: 24,
vertical: 20,
),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(20),
borderSide: const BorderSide(
color: Color(0xFFE0E0E0),
width: 1,
),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20),
borderSide: const BorderSide(
color: Color(0xFFE0E0E0),
width: 1,
),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20),
borderSide: const BorderSide(
color: AppColors.primaryDark,
width: 1.5,
),
),
errorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20),
borderSide: const BorderSide(
color: AppColors.error,
width: 1.5,
),
),
focusedErrorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(20),
borderSide: const BorderSide(
color: AppColors.error,
width: 1.5,
),
),
hintStyle: const TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w300,
color: AppColors.primaryDark,
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.accentOrange,
foregroundColor: AppColors.primaryDark,
elevation: 0,
padding: const EdgeInsets.symmetric(vertical: 20),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
textStyle: const TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w700,
),
),
),
);
}
}