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