Skip to content
On this page

PushbackDrawer

A drawer that moves the main content as it opens.

PushbackDrawer in FluttyUIPushbackDrawer in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

PushbackDrawer

const PushbackDrawer({
  super.key,
  required this.drawer,
  required this.child,
  this.controller,
  this.onChanged,
  this.placement = DrawerPlacement.start,
  this.width = 320,
  this.pageBorderRadius,
  this.edgeSwipeWidth = 24,
  this.enableGestures = true,
  this.backgroundColor,
  this.foregroundColor,
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
drawerWidgetYes—
childWidgetYes—
controllerPushbackDrawerController?Nonull
onChangedValueChanged<bool>?Nonull
placementDrawerPlacementNoDrawerPlacement.start
widthdoubleNo320
pageBorderRadiusdouble?Nonull
edgeSwipeWidthdoubleNo24
enableGesturesboolNotrue
backgroundColorColor?Nonull
foregroundColorColor?Nonull
motionComponentMotion?Nonull

PushbackDrawerController of

static PushbackDrawerController of(BuildContext context);

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/navigation/pushback_drawer/pushback_drawer.dart

This reference is generated from the PushbackDrawer declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI