Allow custom top bar widget to be "not always visible" #69
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.
Description
Currently, the custom top bar widget operates exclusively when the
isTopBarLayerAlwaysVisible
is set totrue
. Setting this tofalse
when custom top bar is used triggers an exception. This PR introduces the flexibility to enable the custom top bar to be used even whenisTopBarLayerAlwaysVisible
is set totrue
.Changes Introduced:
WoltModalSheetPage.topBar
widget is provided, it will be wrapped with shadow and elevation determined by the theme or default settings. Without aWoltModalSheetPage.topBar,
a default top bar will be generated, styled according to the theme settings.WoltModalSheetPage.topBarTitle
.isTopBarLayerAlwaysVisible
falseisTopBarLayerAlwaysVisible
truenot_always_visible.mov
top_bar_always_visible.mov