Last active
April 3, 2024 19:52
-
-
Save micimize/a4ae34ae4f551bab94ac564dd18d74a9 to your computer and use it in GitHub Desktop.
Approach for tab-local navigators in flutter. Generalized from https://stackoverflow.com/a/57627826/2234013
I want to try your implementation but I got this : function withIndex is not defined.
i created a package, try that one instead
@rmkpatchaa sorry about that, withIndex
is a helper I failed to add:
MapFn<A, B> withIndex<A, B>(IndexedMapFn<A, B> mapFn) {
int index = -1;
return (A a) => mapFn(a, ++index);
}
Also here's @AppleEducate's scaffold_tab_bar
package
Gotcha, 👍🏼
Thank you guys. I understand that I can't hide the bottom navigation on specific chid route of a tab right ?
@rmkpatchaa There probably is, because you have access to the navigation state - maybe look How to get current route path. you might want to just render something on top of the tabs though
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice!