drawerbehavior library

Classes

AnimatedMenuListItem
A widget that animates the appearance and position of a menu list item.
CountSideDrawerBuilder
DrawerScaffold
A Scaffold wrapper that provides custom drawer behavior, including multiple drawers, customizable animations, and gesture control.
DrawerScaffoldController
A controller class to programmatically manage the state of drawers in DrawerScaffold.
DrawerScaffoldMenuController
A widget that provides access to the MenuController from within the widget tree. This allows child widgets to control the drawer.
DrawerScaffoldMenuControllerState
The state for DrawerScaffoldMenuController.
ItemSelector
A widget that visually indicates the selected menu item. It animates implicitly.
Controls the animation and state of a single SideDrawer.
Screen
Represents a "screen" or content item that can be selected from a drawer.
SideDrawer<T>
A customizable side drawer widget that can be used with DrawerScaffold.
SideDrawerBuilder<ItemType, IdType>
WidgetSideDrawerBuilder<T>

Enums

Direction
Enum to define the direction from which a drawer can appear.
Enum representing the possible states of a menu (drawer).

Typedefs

DrawerScaffoldBuilder = Widget Function(BuildContext context, MenuController? menuController)
A typedef for building the content of the DrawerScaffold. It provides the BuildContext and an optional MenuController.
A typedef for a callback function when a menu item is selected, returning the selected item's ID.
ScreenBuilder<T> = Widget Function(BuildContext context, T? id)
A typedef for a builder function that creates a widget based on a selected item ID.
SideDrawerIndexBuilder = dynamic Function(BuildContext context, int index, bool selected)
SideDrawerItemBuilder = dynamic Function(BuildContext context, MenuItem menuItem, bool selected)