BeuiDrawer class
An edge drawer — the Flutter port of beUI's drawer, built on BeuiOverlay.
A modal panel (320px, capped at 85% of the screen) that slides in from the side over a fading, blurred backdrop. Closes on backdrop tap (when dismissible) or Esc; focus is trapped while open.
Controlled (open + onOpenChange), the source's API. The panel slide
rides the overdamped panel spring (SPRING_PANEL) toward its current
target — in place when open, off-screen when closing — so enter and exit
are the same spring played forward, matching the source. The backdrop
fades over 250ms EASE_OUT in both directions. Reduced motion fades
opacity (200ms EASE_OUT) instead of sliding.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BeuiDrawer
Constructors
-
BeuiDrawer({required bool open, required ValueChanged<
bool> onOpenChange, required Widget child, BeuiDrawerSide side = BeuiDrawerSide.right, bool dismissible = true, String? label, Key? key}) -
Creates a drawer whose
childis the panel content.const
Properties
- child → Widget
-
The panel content.
final
- dismissible → bool
-
Whether tapping the backdrop closes the drawer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Accessibility label for the dialog.
final
-
onOpenChange
→ ValueChanged<
bool> -
Called when the drawer requests to close (backdrop tap / Esc).
final
- open → bool
-
Whether the drawer is open (controlled).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → BeuiDrawerSide
-
Which edge to slide from.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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