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,46 +18,40 @@ 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(
|
child: ConstrainedBox(
|
||||||
padding: Util.isDesktop
|
constraints: BoxConstraints(
|
||||||
? const EdgeInsets.only(left: 24)
|
minHeight: Util.isDesktop ? 70 : 0,
|
||||||
: const EdgeInsets.all(12),
|
),
|
||||||
child: ConstrainedBox(
|
child: Row(
|
||||||
constraints: BoxConstraints(
|
children: [
|
||||||
minHeight: Util.isDesktop ? 70 : 0,
|
SvgPicture.asset(
|
||||||
),
|
Assets.svg.circlePlusFilled,
|
||||||
child: Row(
|
color: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
children: [
|
width: 26,
|
||||||
SvgPicture.asset(
|
height: 26,
|
||||||
Assets.svg.circlePlusFilled,
|
),
|
||||||
color: Theme.of(context).extension<StackColors>()!.textDark,
|
const SizedBox(
|
||||||
width: 26,
|
width: 12,
|
||||||
height: 26,
|
),
|
||||||
),
|
Text(
|
||||||
const SizedBox(
|
"Add custom token",
|
||||||
width: 12,
|
style: Util.isDesktop
|
||||||
),
|
? STextStyles.desktopTextMedium(context)
|
||||||
Text(
|
: STextStyles.w600_14(context),
|
||||||
"Add custom token",
|
),
|
||||||
style: Util.isDesktop
|
],
|
||||||
? STextStyles.desktopTextMedium(context)
|
|
||||||
: STextStyles.w600_14(context),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue