DrawerHeaderModifier constructor

const DrawerHeaderModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Decoration? decoration,
  5. EdgeInsetsGeometry? margin = const EdgeInsets.only(bottom: 8.0),
  6. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
  7. Duration duration = const Duration(milliseconds: 250),
  8. Curve curve = Curves.fastOutSlowIn,
})

Creates a Material Design drawer header.

Requires one of its ancestors to be a Material widget.

Implementation

const DrawerHeaderModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.decoration,
  this.margin = const EdgeInsets.only(bottom: 8.0),
  this.padding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
  this.duration = const Duration(milliseconds: 250),
  this.curve = Curves.fastOutSlowIn,
});