Nautics class

Inheritance

Constructors

Nautics({Key? key, required List<TabItem> children, required ValueChanged<int> onChange, int initialIndex = 0, Widget? header, Widget? footer, Color? nauticsColor, Color? selectedColor, Color? unSelectedColor, Decoration? collapsedNauticsDecoration, Decoration? expandedNauticsDecoration, double collapsedWidth = 60, double childIndentation = 5, double expandedWidth = 250, bool isCollapsed = true, bool? isFloating = true, bool isConvertible = true, CrossAxisAlignment crossAxisAlignmentCollapsedForm = CrossAxisAlignment.center, CrossAxisAlignment crossAxisAlignmentExpandedForm = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignmentCollapsedForm = MainAxisAlignment.start, MainAxisAlignment mainAxisAlignmentExpandedForm = MainAxisAlignment.start, Widget? selectedTrailingIcon = const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12), Widget? unSelectedTrailingIcon = const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12)})
const

Properties

childIndentation double
Space from left for the nested children under a TabItem.
final
children List<TabItem>
List of items that will show in Nautics.
final
collapsedNauticsDecoration Decoration?
Collapsed Nautics Decoration.
final
collapsedWidth double
Width for collapsed form of Nautics, default = 60.
final
crossAxisAlignmentCollapsedForm CrossAxisAlignment
CrossAxisAlignment for collapsed form.
final
crossAxisAlignmentExpandedForm CrossAxisAlignment
CrossAxisAlignment for expanded form.
final
expandedNauticsDecoration Decoration?
Expanded Nautics Decoration.
final
expandedWidth double
Width for expanded form of Nautics, default = 200.
final
Footer for Nautics SideBar.
final
hashCode int
The hash code for this object.
no setterinherited
Header for Nautics SideBar.
final
initialIndex int
Initial index.
final
isCollapsed bool
Form or state of Nautics (expanded or collapsed), default true, and works only with false value of isConvertible
final
isConvertible bool
Based on the value of isCollapsed, isConvertible forces the Nautics to be in the specific state (expanded or collapsed), when false it allows the Nautics to behave as default.
final
isFloating bool?
The default value "true" will show floating Nautics SideBar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignmentCollapsedForm MainAxisAlignment
MainAxisAlignment for collapsed form.
final
mainAxisAlignmentExpandedForm MainAxisAlignment
MainAxisAlignment for expanded form.
final
nauticsColor Color?
Color for Nautics.
final
onChange ValueChanged<int>
Called whenever item is changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color?
Color for selected item.
final
selectedTrailingIcon Widget?
Selected icon for trailing for nested children tile.
final
unSelectedColor Color?
Color for un-selected item.
final
unSelectedTrailingIcon Widget?
Un-selected icon for trailing for nested children tile.
final

Methods

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