Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added configurable border width and disable flag for the shadow on tapping (helpful if you want a flat button and the elevation is 0) #107

Merged
merged 6 commits into from
Sep 19, 2024

Conversation

JaseElder
Copy link
Contributor

Added configurable border width and disable flag for the shadow on tapping (helpful if you want a flat button and the elevation is 0)

… the button's border

- Added disableTappingShadow property, to remove the ElevatedButton's shadow upon tapping in case the user requires a flat look
Copy link
Owner

@Frezyx Frezyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @JaseElder !
Thanks a lot for this contribution

Can we fix review issues before merge ?

Comment on lines 66 to 67
final List<BoxShadow> unselectedShadow;
final bool? disableTappingShadow;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better if we could provide a default field shadowColor for more customization.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea! I'll amend.

@JaseElder JaseElder requested a review from Frezyx February 15, 2024 16:00
@JaseElder
Copy link
Contributor Author

JaseElder commented Feb 15, 2024

I'm not sure whether I've done the right thing with this PR edit, but it looks like the new changes are there...

@jenyang2
Copy link

jenyang2 commented May 30, 2024

When does border width apply?

@JaseElder
Copy link
Contributor Author

When does border width apply?

Border width is by default set to 1, but a borderWidth can be provided in GroupButtonOptions() if it needs to be other than 1.

@JaseElder
Copy link
Contributor Author

Hi @Frezyx , is this blocked?

@Nirsu
Copy link

Nirsu commented Sep 18, 2024

@Frezyx Any news on this PR ?

Comment on lines 21 to 22
this.unselectedShadow = defaultShadow,
this.tappingShadowColor = defaultTappingShadowColor,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tappingShadowColor must be null by default

@Frezyx
Copy link
Owner

Frezyx commented Sep 19, 2024

Hello @JaseElder !
Thank you for this contribution ❤️

Sorry for delay 🥶

@Frezyx Frezyx merged commit 06a5741 into Frezyx:master Sep 19, 2024
1 check passed
@JaseElder
Copy link
Contributor Author

JaseElder commented Oct 3, 2024

Hello @JaseElder ! Thank you for this contribution ❤️

Sorry for delay 🥶

@Frezyx No worries!

Is there something special that has to happen to have this release appear on pub.dev? It's still showing group_button: ^5.3.4 for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants