padding fix

This commit is contained in:
julian 2023-03-06 07:51:40 -06:00
parent 99a9414851
commit ac5155e5f4

View file

@ -18,23 +18,18 @@ class AddCustomTokenSelector extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Padding( return Padding(
padding: const EdgeInsets.symmetric(vertical: 4), padding: const EdgeInsets.symmetric(vertical: 4),
child: RawMaterialButton( child: MaterialButton(
fillColor: Theme.of(context).extension<StackColors>()!.popupBG, key: const Key("coinSelectItemButtonKey_add_custom"),
elevation: 0, padding: Util.isDesktop
focusElevation: 0, ? const EdgeInsets.only(left: 24)
hoverElevation: 0, : const EdgeInsets.all(12),
highlightElevation: 0, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
constraints: const BoxConstraints(),
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius, Constants.size.circularBorderRadius,
), ),
), ),
onPressed: addFunction, onPressed: addFunction,
child: Padding(
padding: Util.isDesktop
? const EdgeInsets.only(left: 24)
: const EdgeInsets.all(12),
child: ConstrainedBox( child: ConstrainedBox(
constraints: BoxConstraints( constraints: BoxConstraints(
minHeight: Util.isDesktop ? 70 : 0, minHeight: Util.isDesktop ? 70 : 0,
@ -60,7 +55,6 @@ class AddCustomTokenSelector extends StatelessWidget {
), ),
), ),
), ),
),
); );
} }
} }