AdvancedSegment<K extends Object, V extends String> class

An advanced

Inheritance

Constructors

AdvancedSegment({Key? key, required Map<K, V> segments, ValueNotifier<K>? controller, TextStyle activeStyle = const TextStyle(fontWeight: FontWeight.w600), TextStyle? inactiveStyle, EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 15, vertical: 10), BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)), Color backgroundColor = const Color(0x42000000), Color sliderColor = const Color(0xFFFFFFFF), double sliderOffset = 2.0, Duration animationDuration = const Duration(milliseconds: 250), List<BoxShadow>? shadow = const <BoxShadow>[BoxShadow(color: Color(0x42000000), blurRadius: 8.0)], BoxDecoration? sliderDecoration})
const

Properties

activeStyle TextStyle
Active text style.
final
animationDuration Duration
Selection animation duration.
final
backgroundColor Color
Layout background color.
final
borderRadius BorderRadius
Common border radius.
final
controller ValueNotifier<K>?
Controls segments selection.
final
hashCode int
The hash code for this object.
no setterinherited
inactiveStyle TextStyle?
Inactive text style.
final
itemPadding EdgeInsetsGeometry
Padding of each item.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments Map<K, V>
Map of segments should be more than one keys.
final
shadow List<BoxShadow>?
Slide's Shadow
final
sliderColor Color
Color of slider.
final
sliderDecoration BoxDecoration?
Slider decoration
final
sliderOffset double
Gap between slider and layout.
final

Methods

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