ConvexAppBar class

Online example can be found at http://hacktons.cn/convex_bottom_bar.

Inheritance

Constructors

ConvexAppBar({Key? key, required List<TabItem> items, int? initialActiveIndex, bool? disableDefaultTabController, GestureTapIndexCallback? onTap, TapNotifier? onTabNotify, TabController? controller, Color? color, Color? activeColor, Color? backgroundColor, Color? shadowColor, Gradient? gradient, double? height, double? curveSize, double? top, double? elevation, double? cornerRadius, TabStyle? style, Curve? curve, ChipBuilder? chipBuilder})
Construct a new appbar with internal style.
ConvexAppBar.badge(Map<int, dynamic> badge, {Key? key, Color? badgeTextColor, Color? badgeColor, EdgeInsets? badgePadding, EdgeInsets? badgeMargin, double? badgeBorderRadius, required List<TabItem> items, int? initialActiveIndex, bool? disableDefaultTabController, GestureTapIndexCallback? onTap, TapNotifier? onTabNotify, TabController? controller, Color? color, Color? activeColor, Color? backgroundColor, Color? shadowColor, Gradient? gradient, double? height, double? curveSize, double? top, double? elevation, double? cornerRadius, TabStyle? style, Curve? curve})
Construct a new appbar with badge.
factory
ConvexAppBar.builder({Key? key, required DelegateBuilder itemBuilder, required int count, int? initialActiveIndex, bool disableDefaultTabController = false, GestureTapIndexCallback? onTap, TapNotifier? onTapNotify, TabController? controller, Color? backgroundColor, Color? shadowColor, Gradient? gradient, double? height, double? curveSize, double? top, double? elevation, double? cornerRadius, Curve curve = Curves.easeInOut, ChipBuilder? chipBuilder})
Define a custom tab style by implement a DelegateBuilder.
const

Properties

backgroundColor → Color?
Color of the AppBar.
final
chipBuilder → ChipBuilder?
Badge chip builder.
final
controller → TabController?
Tab controller to work with TabBarView or PageView.
final
cornerRadius → double?
Draw the background with topLeft and topRight corner; Only work work with fixed style
final
count → int
Tab count.
final
curve → Curve
The curve to use in the forward direction. Only works when tab style is not fixed.
final
curveSize → double?
Size of the curve line.
final
disableDefaultTabController → bool
Disable access of DefaultTabController to avoid unexpected conflict.
final
elevation → double?
Elevation for the bar top edge.
final
gradient → Gradient?
If provided, backgroundColor for tab app will be ignored.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Height of the AppBar.
final
initialActiveIndex → int?
The initial active index, you can config initialIndex of TabController if work with TabBarView or PageView.
final
itemBuilder → DelegateBuilder
Tab item builder.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → GestureTapIndexCallback?
Tab Click handler.
final
onTapNotify → TapNotifier?
Tab event notifier, can be used to block tap event.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadowColor → Color?
Color of the elevation.
final
top → double?
The distance that the actionButton top edge is inset from the top of the AppBar.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → ConvexAppBarState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited