Replies: 2 comments
-
All right, I ended up putting return Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(child: FormBuilderDropdown(
name: "size",
decoration: const InputDecoration(labelText: "Size"),
items: [...],
),
const SizedBox(width: 10),
Expanded(
child: FormBuilderTouchSpin(
name: 'quantity',
decoration: const InputDecoration(labelText: 'Quantity'),
),
),
// ... eliding another SizedBox and Flexible(IconButton()) here
],
); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Got it looking even nicer by adjusting padding ( return Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(child: FormBuilderDropdown(
name: "size",
decoration: const InputDecoration(labelText: "Size"),
items: [...],
),
const SizedBox(width: 10),
Expanded(
child: FormBuilderTouchSpin(
name: 'quantity',
decoration: const InputDecoration(labelText: 'Quantity', contentPadding: EdgeInsets.all(8.0)),
iconPadding: EdgeInsets.zero,
),
),
],
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'd like to have some horizontal form elements in my form. It works great for some widgets, like a
FormBuilderDropdown
next to aFormBuilderTextField
, as in this example:but if I try to lay out a
FormBuilderDropdown
next to aFormBuilderTouchSpin
, the bottom field borders don't line up:Is there an easy way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions