A flutter package that makes it easy to create your own navigator
anywhere in the widget tree.
A common use for such widget is when you need to implement an "Always presenting bottom navigation bar"
Getting Started
First you need to add the package to your pubspec.yaml file.
Custom scaffold
CustomScaffold
is a stateful widget that uses the CustomNavigator to to handle item
transition of [BottomNavigationBar] with nested navigation while keeping
the [BottomNavigationBar] visible!
Usage
// Here's the custom scaffold widget// It takes a normal scaffold with mandatory bottom navigation bar// and children who are your pagesCustomScaffold(
scaffold: Scaffold(
bottomNavigationBar: BottomNavigationBar(
items: _items,
),
),
// Children are the pages that will be shown by every click// They should placed in order such as// `page 0` will be presented when `item 0` in the [BottomNavigationBar] clicked.
children: <Widget>[
Page('0'),
Page('1'),
Page('2'),
],
// Called when one of the [items] is tapped.
onItemTap: (index) {},
);