import 'package:flutter/material.dart';

import '../../presentation/components/assets/fonts.gen.dart';

part 'app_color.dart';
part 'app_style.dart';
part 'app_value.dart';

class ThemeApp {
  static ThemeData get theme => ThemeData(
    useMaterial3: true,
    primaryColor: AppColor.primary,
    scaffoldBackgroundColor: AppColor.white,
    appBarTheme: AppBarTheme(
      color: AppColor.white,
      elevation: 0,
      titleTextStyle: TextStyle(
        color: AppColor.primary,
        fontSize: 16.0,
        fontWeight: FontWeight.w500,
      ),
      iconTheme: const IconThemeData(color: AppColor.primary),
    ),
    fontFamily: FontFamily.quicksand,
    colorScheme: ColorScheme.fromSeed(seedColor: AppColor.primary),
    inputDecorationTheme: InputDecorationTheme(
      contentPadding: const EdgeInsets.symmetric(horizontal: 16.0),
      hintStyle: const TextStyle(color: AppColor.textSecondary),
      border: OutlineInputBorder(
        borderRadius: BorderRadius.circular(8.0),
        borderSide: BorderSide(color: AppColor.borderDark),
      ),
      focusedBorder: OutlineInputBorder(
        borderRadius: BorderRadius.circular(8.0),
        borderSide: BorderSide(color: AppColor.primary),
      ),
      enabledBorder: OutlineInputBorder(
        borderRadius: BorderRadius.circular(8.0),
        borderSide: BorderSide(color: AppColor.borderDark),
      ),
      errorBorder: OutlineInputBorder(
        borderRadius: BorderRadius.circular(8.0),
        borderSide: BorderSide(color: AppColor.error),
      ),
    ),
  );
}
