convex_bottom_bar
This package extends the official BottomAppBar to display a convex tab, example can be preview as bellow.
Currently the BottomAppBar can only display a notch FAB with app bar, sometimes we need a convex FAB.
Install Demo app-release.apk
How to use
To use ConvexAppBar, follow these steps to setup Scaffold
:
- add FAB with
floatingActionButton
- center the FAB with
floatingActionButtonLocation
- setup App Bar by
bottomNavigationBar
The ConvexAppBar
has to two constructors, the ConvexAppBar()
will use default layout to simplify the tab creation.
Custom
If the default style does not match with your situation, try with ConvexAppBar.builder()
, which allow you to custom nearly all the tab features.
Example
For more detail, please refer to the example project