2025-08-12 15:18:38 +07:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2025-08-12 17:13:02 +07:00
|
|
|
import '../../presentation/components/assets/fonts.gen.dart';
|
|
|
|
|
|
2025-08-12 15:18:38 +07:00
|
|
|
part 'app_color.dart';
|
|
|
|
|
part 'app_style.dart';
|
|
|
|
|
part 'app_value.dart';
|
|
|
|
|
|
|
|
|
|
class ThemeApp {
|
|
|
|
|
static ThemeData get theme => ThemeData(
|
2025-08-12 17:13:02 +07:00
|
|
|
useMaterial3: true,
|
|
|
|
|
scaffoldBackgroundColor: AppColor.background,
|
|
|
|
|
fontFamily: FontFamily.quicksand,
|
|
|
|
|
inputDecorationTheme: InputDecorationTheme(
|
|
|
|
|
hintStyle: AppStyle.md.copyWith(color: AppColor.textSecondary),
|
|
|
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: AppValue.padding),
|
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
|
|
|
borderSide: const BorderSide(color: AppColor.border),
|
|
|
|
|
),
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
|
|
|
borderSide: const BorderSide(color: AppColor.border),
|
|
|
|
|
),
|
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
|
|
|
borderSide: const BorderSide(color: AppColor.primary, width: 2),
|
|
|
|
|
),
|
|
|
|
|
errorBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
|
|
|
borderSide: const BorderSide(color: AppColor.error),
|
|
|
|
|
),
|
|
|
|
|
filled: true,
|
|
|
|
|
fillColor: AppColor.backgroundLight,
|
|
|
|
|
),
|
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
shadowColor: Colors.transparent,
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(AppValue.radius),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
2025-08-12 15:18:38 +07:00
|
|
|
}
|