Skip to content

Commit 59c14d1

Browse files
authored
Merge pull request #844 from Arshhasan/Headers,-Params-&-Form-data-text-fields-get-clipped-towards-bottom-for-longer-texts
Fix Issue[Mobile] #842 Headers, Params & Form data text fields get clipped towards bottom for longer texts
2 parents 17c3c8a + 6ec2b1d commit 59c14d1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/screens/common_widgets/envfield_cell.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:apidash/consts.dart';
12
import 'package:apidash_design_system/apidash_design_system.dart';
23
import 'package:flutter/material.dart';
34
import 'package:multi_trigger_autocomplete_plus/multi_trigger_autocomplete_plus.dart';
@@ -37,6 +38,8 @@ class EnvCellField extends StatelessWidget {
3738
decoration: getTextFieldInputDecoration(
3839
clrScheme,
3940
hintText: hintText,
41+
isDense: true,
42+
contentPadding: kIsMobile ? kPh6b12 : null,
4043
),
4144
autocompleteNoTrigger: autocompleteNoTrigger,
4245
onChanged: onChanged,

packages/apidash_design_system/lib/tokens/measurements.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ const kPs0o6 = EdgeInsets.only(
6464
right: 6,
6565
bottom: 6,
6666
);
67+
const kPh6b12 = EdgeInsets.only(
68+
left: 6.0,
69+
right: 6.0,
70+
bottom: 12.0,
71+
);
6772
const kPh60 = EdgeInsets.symmetric(horizontal: 60);
6873
const kPh60v60 = EdgeInsets.symmetric(vertical: 60, horizontal: 60);
6974
const kPt24l4 = EdgeInsets.only(

0 commit comments

Comments
 (0)