EdgeSideBar class

Inheritance

Constructors

EdgeSideBar({Key? key, required List<Widget> children, double width = 70, double height = 200, Color backgroundColor = Colors.white, double borderRadius = 30, Duration animationDuration = const Duration(milliseconds: 300), bool initialExpanded = true, Widget? toggleButton, EdgeSideBarDirection edgeSideBarDirection = EdgeSideBarDirection.right, SidebarTriggerMode triggerMode = SidebarTriggerMode.both, double topOffset = 170, double sidebarLeftOffset = 0, double toggleTopOffset = 80, double toggleLeftOffset = 0, double toggleButtonWidth = 10, double toggleButtonHeight = 150, Color toggleButtonBorderColor = const Color(0xFF9E9E9E), Color defaultToggleColor = Colors.white12, double? rightOffset})
const

Properties

animationDuration Duration
Duration for the slide animation
final
backgroundColor Color
Background color of the sidebar
final
borderRadius double
Border radius for the sidebar container
final
children List<Widget>
List of widgets to show inside the sidebar
final
defaultToggleColor Color
Default color for the toggle button when not provided
final
edgeSideBarDirection EdgeSideBarDirection
Direction from which the sidebar should appear (left, right, top, or bottom)
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the sidebar (used for top/bottom directions)
final
initialExpanded bool
Whether the sidebar should be initially expanded or not
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
rightOffset double?
Optional right offset for the sidebar when expanded
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sidebarLeftOffset double
Left position of the sidebar from the screen
final
toggleButton Widget?
Toggle button widget to show when sidebar is collapsed
final
toggleButtonBorderColor Color
Border color for the default toggle button
final
toggleButtonHeight double
final
toggleButtonWidth double
Width and height of the toggle button when custom one is not provided
final
toggleLeftOffset double
Left position of the toggle button from the screen
final
toggleTopOffset double
Top position of the toggle button from the screen
final
topOffset double
Top position of the sidebar from the screen
final
triggerMode SidebarTriggerMode
To define how the sidebar can be triggered
final
width double
Width of the sidebar
final

Methods

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