mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49: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) {
|
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 {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue