网页 综合 更新时间 2026-11-14 15:56:26

convex_bottom_bar | Flutter package

自动蜘蛛 pub.dev 正文约 2404 字
convex_bottom_bar | Flutter package
A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
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.
Online example can be found at https://appbar.codemagic.app.
convex_bottom_bar is now a Flutter Favorite package!
Here are some supported style:
Typically ConvexAppBar can work with Scaffold by setup its bottomNavigationBar.
The ConvexAppBar has two constructors. The ConvexAppBar() will use the default style to simplify the tab creation.
Add this to your package's pubspec.yaml file, use the latest version :
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.
The bar will use default style, you may want to theme it. Here are some supported attributes:
If you need to add a badge on the tab, use the ConvexAppBar.badge to get it done.
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.
If you only need a single button, checkout the ConvexButton.
Hook for internal tab style. Unlike the ConvexAppBar.builder, you may want to update the tab style without defining a new tab style.
Warning: This hook is limited and can lead to overflow broken if the size you provide does not match with internal style.
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:
If the default style does not match your situation, try with ConvexAppBar.builder(), allowing you to custom nearly all the tab features.
Full custom example can be found at example.
Please file feature requests and bugs at the issue tracker.
You like the package ? Buy me a coffee :)
A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
Repository (GitHub)View/report issues
Apache-2.0 (license)
Packages that depend on convex_bottom_bar
A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
Repository (GitHub)View/report issues
Apache-2.0 (license)
Packages that depend on convex_bottom_bar
访问原文 返回搜索 https://pub.dev/packages/convex_bottom_bar
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。