The official BottomAppBar can only display a notch FAB with an app bar, and sometimes we need a convex FAB. BottomAppBar and NotchShape's implementation inspires this ConvexAppBar.
Flutter Version Support
As Flutter is developing fast. There can be breaking changes. We will be trying to support the
stable version and beta version through different package versions.
Stable Flutter Version
Package Version
More
>=3.7.0
>=3.2.0
Since v3.7.0, the stable version changed the DefaultTabController api
>=1.20
>=2.4.0
Since v1.20, the stable version changed the Stack api
<1.20
<=2.3.0
Support for stable version such as v1.17, v1.12 is not going to be updated
Features
Provide multiple internal styles
Ability to change the theme of AppBar
Provide builder API to customize a new style
Add badge on the tab menu
Elegant transition animation
Provide hook API to override some of the internal styles
The badge() method accepts an array of badges; The badges is a map with tab items. Each value of entry can be either String, IconData, Color or Widget.
Single Button
If you only need a single button, checkout the ConvexButton.
RTL is supported internally, and if you define the TextDirection inside the app, the AppBar should work fine.
Both RTL and LTR can be configured through Directionality: