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

Enabled params missing into FLRaisedButton #31

Closed
carmas123 opened this issue May 10, 2020 · 2 comments
Closed

Enabled params missing into FLRaisedButton #31

carmas123 opened this issue May 10, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@carmas123
Copy link

Hi, I see you lib and use it in my app but I know that you have forgot to add "enabled" property to FLRaisedButton and FLLoadingButton

Regards

@Rannie
Copy link
Owner

Rannie commented May 11, 2020

hi @carmas123 , ok i will add enabled in this week.
Thanks for using FLUI and the great suggestion!

@Rannie Rannie added the enhancement New feature or request label May 11, 2020
@Rannie
Copy link
Owner

Rannie commented May 12, 2020

hi @carmas123, flutter meterial_button has a default enabled logic:

/// Whether the button is enabled or disabled.
///
/// Buttons are disabled by default. To enable a button, set its [onPressed]
/// or [onLongPress] properties to a non-null value.
bool get enabled => onPressed != null || onLongPress != null;

so, FLxxxButton will also be used like this~

@Rannie Rannie closed this as completed May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants