JellyTabBar class
This is an example of JellyTabBar widget.
{@tool snippet}
JellyTabBar(
margin: EdgeInsets.all(16),
animationDuration: const Duration(milliseconds: 1600),
backgroundColor: const Color(0xff070606),
activeColor: const Color(0xff83181D),
iconColor: Colors.white,
height: 72.0,
padding: const EdgeInsets.only(
bottom: 12.0, top: 12.0, left: 12.0, right: 12.0),
borderRadius: 36,
tabItemPadding: const EdgeInsets.all(8),
bounceFactor: 0.3,
tabs: kSampleIcons.map((e) => Icon(e)).toList(),
),
{@end-tool}
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- JellyTabBar
Constructors
-
JellyTabBar({Key? key, required List<
Widget> tabs, Duration duration = const Duration(milliseconds: 1600), Color backgroundColor = const Color(0xff070606), Color activeColor = const Color(0xff83181D), Color iconColor = Colors.white, double height = 72.0, EdgeInsets margin = EdgeInsets.zero, EdgeInsets padding = const EdgeInsets.only(bottom: 12.0, top: 12.0, left: 12.0, right: 12.0), double borderRadius = 36, TabController? controller, EdgeInsets tabItemPadding = const EdgeInsets.all(8)}) -
Create a Romantic Bottom Jelly TabBar.
const
Properties
- activeColor → Color
-
activeColor : The active icon color.
final
- backgroundColor → Color
-
backgroundColor : The background color of the tab bar.
final
- borderRadius → double
-
borderRadius : The border radius of the tab bar background.
final
- controller → TabController?
-
This widget's selection and animation state.
final
- duration → Duration
-
duration : The duration to run animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
height : The height of the tab bar.
final
- iconColor → Color
-
iconColor : The icon color.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsets
-
margin : The margin of the tab bar.
final
- padding → EdgeInsets
-
padding : The padding of the tab bar background.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabItemPadding → EdgeInsets
-
tabItemPadding : is the padding of the icon widget inside each tabs.
final
-
tabs
→ List<
Widget> -
tabs : They should be icon/image widgets without action.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _JellyTabBarState -
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}) → 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