-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Revert attribute content and add assert with pane attribute #531
Conversation
…to fix_navigationview
Prior to var index = 0;
...
NavigationView (
content: LazyIndexedStack(
index: index,
children: [
(context) => const ScreenOne(),
(context) => const ScreenTwo(),
(context) => const ScreenThree(),
]),
pane: NavigationPane(
selected: index,
onChanged: (i) {
setState(() => index = i);
},
items: [
PaneItem(
icon: Icon(
Icons.home,
),
title: Text("One"),
),
PaneItem(
icon: Icon(
Icons.home,
),
title: Text("Two"),
),
PaneItem(
icon: Icon(
Icons.home,
),
title: Text("Three"),
), With this setup I was able to maintain internal state for every page in the |
you can use a |
Sadly, I've opened #595 in order to allow current behavior and pre |
Pre-launch Checklist
CHANGELOG.md
with my changesI have some case where I use the navigation view like this:
With this fix, we can use one solution with
pane
orcontent
(but one of these must be null !).