1
+ import 'package:e_commerce_app/configs/size_config.dart' ;
1
2
import 'package:e_commerce_app/constants/color_constant.dart' ;
2
3
import 'package:e_commerce_app/constants/constants.dart' ;
3
4
import 'package:flutter/material.dart' ;
@@ -6,15 +7,16 @@ class AppTheme {
6
7
static final ThemeData currentTheme = ThemeData (
7
8
scaffoldBackgroundColor: COLOR_CONST .backgroundColor,
8
9
fontFamily: "Roboto" ,
9
- appBarTheme: appBarTheme ,
10
- textTheme: textTheme ,
10
+ appBarTheme: _appBarTheme ,
11
+ textTheme: _textTheme ,
11
12
floatingActionButtonTheme: FloatingActionButtonThemeData (
12
13
backgroundColor: COLOR_CONST .primaryColor,
13
14
),
14
15
visualDensity: VisualDensity .adaptivePlatformDensity,
16
+ inputDecorationTheme: _inputDecorationThem,
15
17
);
16
18
17
- static final appBarTheme = AppBarTheme (
19
+ static final _appBarTheme = AppBarTheme (
18
20
color: Colors .white,
19
21
shadowColor: COLOR_CONST .cardShadowColor,
20
22
elevation: 0.4 ,
@@ -25,9 +27,18 @@ class AppTheme {
25
27
textTheme: TextTheme (headline6: FONT_CONST .BOLD_DEFAULT_20 ),
26
28
);
27
29
28
- static final textTheme = TextTheme (
29
- bodyText1: TextStyle (color: COLOR_CONST .textColor),
30
- bodyText2: TextStyle (color: COLOR_CONST .textColor));
30
+ static final _textTheme = TextTheme (
31
+ bodyText1: TextStyle (color: COLOR_CONST .textColor),
32
+ bodyText2: TextStyle (color: COLOR_CONST .textColor),
33
+ );
34
+
35
+ static final _inputDecorationThem = InputDecorationTheme (
36
+ contentPadding: EdgeInsets .symmetric (horizontal: SizeConfig .defaultPadding),
37
+ border: OutlineInputBorder (
38
+ borderRadius: BorderRadius .circular (5 ),
39
+ borderSide: BorderSide (color: COLOR_CONST .textColor),
40
+ ),
41
+ );
31
42
32
43
/// Singleton factory
33
44
static final AppTheme _instance = AppTheme ._internal ();
0 commit comments