@@ -30,6 +30,12 @@ class VerticalTitleValueSection extends StatelessWidget {
30
30
final Color ? valueTextColor;
31
31
final TextStyle ? valueTextStyle;
32
32
33
+ final String ? hint;
34
+ final String ? hintFontFamily;
35
+ final double hintFontSize;
36
+ final Color ? hintTextColor;
37
+ final TextStyle ? hintTextStyle;
38
+
33
39
final BoxBorder ? border;
34
40
final Color ? borderColor;
35
41
final double borderWidth;
@@ -50,6 +56,12 @@ class VerticalTitleValueSection extends StatelessWidget {
50
56
this .valueTextColor,
51
57
this .valueTextStyle,
52
58
59
+ this .hint,
60
+ this .hintFontFamily,
61
+ this .hintFontSize = 12 ,
62
+ this .hintTextColor,
63
+ this .hintTextStyle,
64
+
53
65
this .border,
54
66
this .borderColor,
55
67
this .borderWidth = 3 ,
@@ -76,6 +88,15 @@ class VerticalTitleValueSection extends StatelessWidget {
76
88
@protected TextStyle get defaultValueTextStyle => TextStyle (fontFamily: displayValueFontFamily, fontSize: valueFontSize, color: displayValueTextColor);
77
89
@protected TextStyle get displayValueTextStyle => valueTextStyle ?? defaultValueTextStyle;
78
90
91
+ @protected Color ? get defaultHintTextColor => Styles ().colors? .textBackground;
92
+ @protected Color ? get displayHintTextColor => hintTextColor ?? defaultHintTextColor;
93
+
94
+ @protected String ? get defaultHintFontFamily => Styles ().fontFamilies? .regular;
95
+ @protected String ? get displayHintFontFamily => hintFontFamily ?? defaultHintFontFamily;
96
+
97
+ @protected TextStyle get defaultHintTextStyle => TextStyle (fontFamily: displayHintFontFamily, fontSize: hintFontSize, color: displayHintTextColor);
98
+ @protected TextStyle get displayHintTextStyle => hintTextStyle ?? defaultHintTextStyle;
99
+
79
100
@protected Color get defaultBorderColor => Styles ().colors? .fillColorSecondary ?? Colors .transparent;
80
101
@protected Color get displayBorderColor => borderColor ?? defaultBorderColor;
81
102
@@ -94,6 +115,7 @@ class VerticalTitleValueSection extends StatelessWidget {
94
115
Column (crossAxisAlignment: CrossAxisAlignment .start, children: < Widget > [
95
116
(title != null ) ? Row (children: [Expanded (child: Text (title ?? '' , style: displayTitleTextStyle,))]) : Container (),
96
117
(value != null ) ? Row (children: [Expanded (child: Text (value ?? '' , style: displayValueTextStyle))]) : Container (),
118
+ (hint != null ) ? Row (children: [Expanded (child: Text (hint ?? '' , style: displayHintTextStyle))]) : Container (),
97
119
],),
98
120
),
99
121
),
0 commit comments