mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
padding fix
This commit is contained in:
parent
99a9414851
commit
ac5155e5f4
1 changed files with 28 additions and 34 deletions
|
@ -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 {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue