You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See that the text color has changed to red but the button has no border applied.
Expected behavior
I expect to be able to override the shape of buttons using ButtonStyle.
I see two options in solving this:
a) the most backwards-compatible solution would be to still merge the styles but change the order so that the custom style overrules the default style:
TextButton style merge is implemented in a way that the original object takes precedence over the argument.
We therefore switch the merge orientation to ensure that it is possible to override every style.
ClosesPyozer#224
It is currently impossible to change the shape of intro_buttons using baseBtnStyle or nextStyle (same applies for all style attributes).
Describe the bug
This is due to the fact that ButtonStyle.merge from Flutter takes precedence on the caller objects non-null values over the style argument and the merge order in the intro_button.dart implementation: https://github.com/Pyozer/introduction_screen/blob/master/lib/src/ui/intro_button.dart#L26C1-L30C26
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to be able to override the shape of buttons using ButtonStyle.
I see two options in solving this:
a) the most backwards-compatible solution would be to still merge the styles but change the order so that the custom style overrules the default style:
b) the more straight-forward solution would be to only apply the default shape if no style is provided:
Screenshots
Here you can see screenshots of the example how to reproduce and that the border is applied with either of the proposed changes:
Current:

With proposed changes applied:

Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: