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

🐛 Using NavigationView without AppBar breaks content #78

Closed
NicolaVerbeeck opened this issue Oct 6, 2021 · 0 comments · Fixed by #79
Closed

🐛 Using NavigationView without AppBar breaks content #78

NicolaVerbeeck opened this issue Oct 6, 2021 · 0 comments · Fixed by #79

Comments

@NicolaVerbeeck
Copy link
Contributor

NicolaVerbeeck commented Oct 6, 2021

Describe the bug
If you use a NavigationView (with a NavigationPane in compact mode) with for example a NavgationBody content AND you do not supply the AppBar, the width of the content is set to 0.

To Reproduce
Steps to reproduce the behavior:

NavigationView(
              key: _navKey,
              pane: NavigationPane(
                selected: ...,
                onChanged: ...,
                displayMode: PaneDisplayMode.compact,
                items: ...,
              ),
              content: NavigationBody(...),
)

Expected behavior
Content should fill as with the appbar case

I could fix it by changing the line 166 in view.dart to:
return LayoutBuilder(builder: (context, constraints) => SizedBox(width: constraints.maxWidth, height: 0));
This ensures the stack will get its width from somewhere (all the other children are using positioned in this case).

NicolaVerbeeck added a commit to NicolaVerbeeck/fluent_ui that referenced this issue Oct 6, 2021
WinXaito pushed a commit to WinXaito/fluent_ui that referenced this issue Nov 28, 2021
dev-hann added a commit to dev-hann/fluent_ui that referenced this issue Sep 18, 2023
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

Successfully merging a pull request may close this issue.

1 participant