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

Flushbar mainButton with 100% height #164

Open
Matej-Hlatky opened this issue Nov 17, 2020 · 0 comments
Open

Flushbar mainButton with 100% height #164

Matej-Hlatky opened this issue Nov 17, 2020 · 0 comments

Comments

@Matej-Hlatky
Copy link

Hello,
When trying to make mainButton that occupy 100% Flushbar height, can't do it since it is unbounded and we don't have control over parent Row returned by _generateFlushbar() / _generateInputFlushbar() function.

I came to these possibilities:

  1. Update _generate*Flushbar() functions and wrap Row with IntrinsicHeight according to this SO post or implement different approach, that will allow us to get the size in mainButton.
  2. Provide custom builder as new parameter to build the entire Flushbar UI.
    So yeah, if defined, it will just ignore the title, message, titleText, messageText and other visual content related attributes.

Other option is to just use GlobalKey on our widgets and set the size in WidgetsBinding.instance.addPostFrameCallback(...), but this is nasty workaround.

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

No branches or pull requests

1 participant