Line up option in device settings with min width
This commit is contained in:
parent
df40e05e19
commit
aad9f9600c
|
|
@ -89,36 +89,44 @@ class BoolDropdownButton extends StatelessWidget {
|
|||
children: <Widget>[
|
||||
InkWell(
|
||||
onTap: () => onChanged(false),
|
||||
child: Row(
|
||||
children: [
|
||||
IgnorePointer(
|
||||
child: Radio<bool>(
|
||||
value: false,
|
||||
onChanged: (value) => null,
|
||||
groupValue: value,
|
||||
activeColor: Theme.of(context).accentColor,
|
||||
child: ConstrainedBox(
|
||||
constraints:
|
||||
BoxConstraints(minWidth: 125, minHeight: 36),
|
||||
child: Row(
|
||||
children: [
|
||||
IgnorePointer(
|
||||
child: Radio<bool>(
|
||||
value: false,
|
||||
onChanged: (value) => null,
|
||||
groupValue: value,
|
||||
activeColor: Theme.of(context).accentColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(falseLabel),
|
||||
SizedBox(width: 16),
|
||||
],
|
||||
Text(falseLabel),
|
||||
SizedBox(width: 16),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
onTap: () => onChanged(true),
|
||||
child: Row(
|
||||
children: [
|
||||
IgnorePointer(
|
||||
child: Radio<bool>(
|
||||
value: true,
|
||||
onChanged: (value) => null,
|
||||
groupValue: value,
|
||||
activeColor: Theme.of(context).accentColor,
|
||||
child: ConstrainedBox(
|
||||
constraints:
|
||||
BoxConstraints(minWidth: 125, minHeight: 36),
|
||||
child: Row(
|
||||
children: [
|
||||
IgnorePointer(
|
||||
child: Radio<bool>(
|
||||
value: true,
|
||||
onChanged: (value) => null,
|
||||
groupValue: value,
|
||||
activeColor: Theme.of(context).accentColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(trueLabel),
|
||||
SizedBox(width: 16),
|
||||
],
|
||||
Text(trueLabel),
|
||||
SizedBox(width: 16),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue