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

Remove back button from NavigationPane #74

Closed
tobiasht opened this issue Sep 30, 2021 · 3 comments
Closed

Remove back button from NavigationPane #74

tobiasht opened this issue Sep 30, 2021 · 3 comments

Comments

@tobiasht
Copy link
Contributor

I can't find a way to remove the back button from the NavigationPane. Seems like it is implemented for NavigationAppBar, but not for NavigationPane. Can you please add this functionality?

@bdlukaa
Copy link
Owner

bdlukaa commented Sep 30, 2021

Which back button? There isn't any back button on NavigationPane, only on NavigationAppBar.

@tobiasht
Copy link
Contributor Author

tobiasht commented Oct 1, 2021

That's weird. This is what i am seeing. Followed by the code

image

NavigationView(
        contentShape: RoundedRectangleBorder(),
        pane: NavigationPane(
          menuButton: SizedBox(),
          selected: _tabIndex,
          header: Padding(
            padding: const EdgeInsets.only(bottom: 4.0),
            child: Text("Header",
                style: FluentTheme.of(context)
                    .typography
                    .bodyLarge!
                    .copyWith(fontWeight: FontWeight.bold)),
          ),
          items: [
            PaneItem(icon: Text("Item 1")),
            PaneItem(icon: Text("Item 2")),
            PaneItem(icon: Text("Item 3")),

          ],
          footerItems: [
            PaneItem(icon: Text("FooterItem 1")),
          ],
          onChanged: (i) => setState(() => _tabIndex = i),
          displayMode: PaneDisplayMode.top,
        ),
        content: NavigationBody(index: _tabIndex, children: [
          Container(),
          Container(),
          Container(),
        ]),
      );

@bdlukaa
Copy link
Owner

bdlukaa commented Oct 1, 2021

That's true! The back button is added when the top mode is selected.

NavigationAppBar.buildLeading(context, const NavigationAppBar()),

I'll fix it!

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

No branches or pull requests

2 participants