ElevarmDesktopDrawer class

Wrapper ElevarmDrawer for desktop layout.

Inheritance
Available Extensions

Constructors

ElevarmDesktopDrawer({required String currentRoutePath, required void onChangedRoutePath(BuildContext context, String? routePath), required String profileTitle, required String profileSubtitle, required void onPressedLogout(BuildContext context), required Widget headerTitle, required Widget headerSubtitle, required Widget child, Duration duration = const Duration(milliseconds: 200), List<ElevarmDrawerMenu> mainMenus = const [], List<ElevarmDrawerMenu> secondaryMenus = const [], ImageProvider<Object>? profileImageProvider, IconData logoutIconAssetName = ElevarmIconsOutline.log_out_01, IconData chevronRightIconAssetName = ElevarmIconsOutline.chevron_right, String elevarmLogoImageAssetName = 'packages/elevarm_ui/assets/images/elevarm_logo_white.svg', bool isShowProfile = true, Key? key})
const

Properties

chevronRightIconAssetName IconData
Chevron right icon asset name.
final
child Widget
The drawer content widget.
final
currentRoutePath String
Currently active route path.
final
duration Duration
Animation duration.
final
elevarmLogoImageAssetName String
Elevarm logo image asset name.
final
hashCode int
The hash code for this object.
no setterinherited
headerSubtitle Widget
Header subtitle widget.
final
headerTitle Widget
Header title widget.
final
isShowProfile bool
Whether to show profile
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
logoutIconAssetName IconData
Logout button icon asset name.
final
Drawer main menus (below header).
final
onChangedRoutePath → void Function(BuildContext context, String? routePath)
Callback when route is changing.
final
onPressedLogout → void Function(BuildContext context)
Callback when logout button is pressed.
final
profileImageProvider ImageProvider<Object>?
Profile image provider.
final
profileSubtitle String
Profile subtitle.
final
profileTitle String
Profile title.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryMenus List<ElevarmDrawerMenu>
Drawer secondary menus (above profile).
final
Whether to show Elevarm logo.
final

Methods

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