color and theme
This commit is contained in:
@@ -1,11 +1,43 @@
|
||||
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,
|
||||
);
|
||||
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.grey),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
borderSide: BorderSide(color: AppColor.primary),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
borderSide: BorderSide(color: AppColor.primary),
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
borderSide: BorderSide(color: AppColor.primary),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user