CollapsibleSidebar class

Inheritance

Constructors

CollapsibleSidebar({Key? key, required List<CollapsibleItem> items, required Widget body, String title = 'Lorem Ipsum', TextStyle? titleStyle, bool titleBack = false, IconData titleBackIcon = Icons.arrow_back, MouseCursor onHoverPointer = SystemMouseCursors.click, TextStyle? textStyle, TextStyle? toggleTitleStyle, String toggleTitle = 'Collapse', dynamic avatarImg, double height = double.infinity, double minWidth = 80, double maxWidth = 270, double borderRadius = 15, double iconSize = 40, double customContentPaddingLeft = -1, IconData toggleButtonIcon = Icons.chevron_right, Color backgroundColor = const Color(0xff2B3138), Color avatarBackgroundColor = const Color(0xff6A7886), Color selectedIconBox = const Color(0xff2F4047), Color selectedIconColor = const Color(0xff4AC6EA), Color selectedTextColor = const Color(0xffF3F7F7), Color unselectedIconColor = const Color(0xff6A7886), Color unselectedTextColor = const Color(0xffC0C7D0), Color badgeBackgroundColor = const Color(0xffFF6767), Color badgeTextColor = const Color(0xffF3F7F7), Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.fastLinearToSlowEaseIn, double screenPadding = 4, bool showToggleButton = true, double topPadding = 0, double bottomPadding = 0, double itemPadding = 10, double customItemOffsetX = -1, bool fitItemsToBottom = false, VoidCallback? onTitleTap, bool isCollapsed = true, bool collapseOnBodyTap = true, bool showTitle = true, List<BoxShadow> sidebarBoxShadow = const [BoxShadow(color: Colors.blue, blurRadius: 10, spreadRadius: 0.01, offset: Offset(3, 3))]})
const

Properties

avatarBackgroundColor Color
final
avatarImg → dynamic
final
backgroundColor Color
final
badgeBackgroundColor Color
final
badgeTextColor Color
final
body Widget
final
borderRadius double
final
bottomPadding double
final
collapseOnBodyTap bool
final
curve Curve
final
customContentPaddingLeft double
final
customItemOffsetX double
final
duration Duration
final
fitItemsToBottom bool
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
iconSize double
final
isCollapsed bool
final
itemPadding double
final
items List<CollapsibleItem>
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxWidth double
final
minWidth double
final
onHoverPointer MouseCursor
final
onTitleTap VoidCallback?
final
padding double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenPadding double
final
selectedIconBox Color
final
selectedIconColor Color
final
selectedTextColor Color
final
showTitle bool
final
showToggleButton bool
final
sidebarBoxShadow List<BoxShadow>
final
textStyle TextStyle?
final
title String
final
titleBack bool
final
titleBackIcon IconData
final
titleStyle TextStyle?
final
toggleButtonIcon IconData
final
toggleTitle String
final
toggleTitleStyle TextStyle?
final
topPadding double
final
unselectedIconColor Color
final
unselectedTextColor Color
final

Methods

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