google-pay / compose-pay-button

An Android library that provides a Jetpack Compose wrapper on top of the Google Pay Button API.
Apache License 2.0
29 stars 2 forks source link

Setting height of button #4

Open rasmusandersson5 opened 1 year ago

rasmusandersson5 commented 1 year ago

Is there any way of setting the height of the button? Modifier.height only sets the height of the container and not the actual button

dmengelt commented 1 year ago

@rasmusandersson5 Right. This is currently not possible. Could you elaborate a bit more on your use case? Maybe share a screenshot of your screen indicating why you need the height to be adjustable? Thanks for your help.

rasmusandersson5 commented 1 year ago

Hi!

Basically I want the button to align with other button heights from our design system. Show a Google Pay button together with, let's say, our own "Continue" button looks a bit bad now since the height is not exactly the same.

dmengelt commented 1 year ago

Thanks for the clarifications @rasmusandersson5 Any chance you could share a screenshot with me? I would love to see how it looks...

rasmusandersson5 commented 1 year ago

This is probably all I can give you atm 😁 The text is "Continue" in Swedish πŸ‡ΈπŸ‡ͺ

Screenshot 2023-11-05 at 14 32 55
cmargonis commented 10 months ago

Hello, posting here to add that this is something that we'd also like (same scenario πŸ˜„ )

naltynbekkz commented 5 months ago

+1

LaurentLixfe commented 4 months ago

Hello, same issue for me. According to the guidelines, each payment button should have the same size, unfortunately that's not possible without changing the height