From aad9f9600c214806e6cde0cdd145a93910db109d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 4 May 2021 21:17:23 +0300 Subject: [PATCH] Line up option in device settings with min width --- lib/ui/app/forms/bool_dropdown_button.dart | 56 ++++++++++++---------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/lib/ui/app/forms/bool_dropdown_button.dart b/lib/ui/app/forms/bool_dropdown_button.dart index 4229393eb..1e8b004d8 100644 --- a/lib/ui/app/forms/bool_dropdown_button.dart +++ b/lib/ui/app/forms/bool_dropdown_button.dart @@ -89,36 +89,44 @@ class BoolDropdownButton extends StatelessWidget { children: [ InkWell( onTap: () => onChanged(false), - child: Row( - children: [ - IgnorePointer( - child: Radio( - 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( + 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( - 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( + value: true, + onChanged: (value) => null, + groupValue: value, + activeColor: Theme.of(context).accentColor, + ), ), - ), - Text(trueLabel), - SizedBox(width: 16), - ], + Text(trueLabel), + SizedBox(width: 16), + ], + ), ), ), ],