DrawerTheme constructor

const DrawerTheme({
  1. double? surfaceOpacity,
  2. double? surfaceBlur,
  3. Color? barrierColor,
  4. bool? showDragHandle,
  5. Size? dragHandleSize,
})

Creates a DrawerTheme.

All parameters are optional and will use system defaults when null.

Parameters:

  • surfaceOpacity (double?, optional): opacity for backdrop surface effects
  • surfaceBlur (double?, optional): blur intensity for backdrop effects
  • barrierColor (Color?, optional): color of the modal barrier
  • showDragHandle (bool?, optional): whether to show drag handles
  • dragHandleSize (Size?, optional): size of the drag handle

Example:

const DrawerTheme(
  surfaceOpacity: 0.95,
  showDragHandle: true,
  barrierColor: Color.fromRGBO(0, 0, 0, 0.7),
)

Implementation

const DrawerTheme({
  this.surfaceOpacity,
  this.surfaceBlur,
  this.barrierColor,
  this.showDragHandle,
  this.dragHandleSize,
});