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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JaseElder
Copy link

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
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
Copy link
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...

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.

None yet

2 participants