[FEATURE] Added custom widget for titleCompact and footerCompact #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey!
So playing with this package, I came to this problem, when I wanted to render different widgets for footer and title depending on the displayMode. I tried using providers, however, to make it work properly I needed to add
addPostFrameCallback
, which impacted performance (by rendering widgets late - I couldn't render it faster, as I can't call setState during the build phase), so I decided to make a new feature, that would solve this problem in a non-robust way - with adding titleCompact and footerCompact, which if not filled will not affect rendering of the footer/title. Hope you like it! (and merge it 馃榿)Signed by Branislav Mate谩拧.