Skip to content

Commit 0b8184e

Browse files
authored
Merge pull request #251 from opxdelwin/padding-issue-on-headers
[fix] Fix vertical obscuring issue in form data section
2 parents 4d07b63 + cd9a3d5 commit 0b8184e

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

lib/widgets/form_data_field.dart

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,34 @@ class _FormDataFieldState extends State<FormDataField> {
4646
color: colorScheme.onSurface,
4747
),
4848
decoration: InputDecoration(
49-
hintStyle: kCodeStyle.copyWith(
50-
color: colorScheme.outline.withOpacity(
49+
hintStyle: kCodeStyle.copyWith(
50+
color: colorScheme.outline.withOpacity(
51+
kHintOpacity,
52+
),
53+
),
54+
hintText: widget.hintText,
55+
contentPadding: const EdgeInsets.only(bottom: 16),
56+
focusedBorder: UnderlineInputBorder(
57+
borderSide: BorderSide(
58+
color: colorScheme.primary.withOpacity(
5159
kHintOpacity,
5260
),
5361
),
54-
hintText: widget.hintText,
55-
focusedBorder: UnderlineInputBorder(
56-
borderSide: BorderSide(
57-
color: colorScheme.primary.withOpacity(
58-
kHintOpacity,
59-
),
60-
),
62+
),
63+
enabledBorder: UnderlineInputBorder(
64+
borderSide: BorderSide(
65+
color: colorScheme.surfaceVariant,
6166
),
62-
enabledBorder: UnderlineInputBorder(
63-
borderSide: BorderSide(
64-
color: colorScheme.surfaceVariant,
65-
),
66-
),
67-
suffixIcon: DropdownButtonFormData(
68-
formDataType: widget.formDataType,
69-
onChanged: (p0) {
70-
if (widget.onFormDataTypeChanged != null) {
71-
widget.onFormDataTypeChanged!(p0);
72-
}
73-
},
74-
)),
67+
),
68+
suffixIcon: DropdownButtonFormData(
69+
formDataType: widget.formDataType,
70+
onChanged: (p0) {
71+
if (widget.onFormDataTypeChanged != null) {
72+
widget.onFormDataTypeChanged!(p0);
73+
}
74+
},
75+
),
76+
),
7577
onChanged: widget.onChanged,
7678
),
7779
),

0 commit comments

Comments
 (0)