AnimatedRail class

Inheritance

Constructors

AnimatedRail({Key? key, double width = 100, double maxWidth = 350, TextDirection? direction, List<RailItem> items = const [], int? selectedIndex, Color? background, bool expand = true, bool isStatic = false, ItemBuilder? builder, Size? cursorSize, RailTileConfig? railTileConfig, CursorActionTrigger cursorActionType = CursorActionTrigger.drag})
const

Properties

background Color?
background of the rail
final
builder ItemBuilder?
custom builder for each item
final
cursorActionType CursorActionTrigger
the type of cursor action to use default to CursorActionType.drag only
final
cursorSize Size?
dragable cursor size for the rail
final
direction TextDirection?
direction of rail if it is on the right or left
final
expand bool
if true the the rail can exapnd and reach maxWidth and the animation for text will take effect default true
final
hashCode int
The hash code for this object.
no setterinherited
isStatic bool
if true the rail will not move vertically default to false
final
items List<RailItem>
the tabs of the rail as a list of object type RailItem
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxWidth double
the max width the rai will snap to, active when expand is equal true
final
railTileConfig RailTileConfig?
config for rail tile
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int?
current selected Index dont use it unlessa you want to change the tabs programmatically
final
width double
the width of the rail when it is opened default to 100
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() AnimatedRailState
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