BottomAppBar constructor

const BottomAppBar({
  1. Key? key,
  2. Color? color,
  3. double? elevation,
  4. NotchedShape? shape,
  5. Clip clipBehavior = Clip.none,
  6. double notchMargin = 4.0,
  7. Widget? child,
  8. EdgeInsetsGeometry? padding,
  9. Color? surfaceTintColor,
  10. Color? shadowColor,
  11. double? height,
})

Creates a bottom application bar.

The clipBehavior argument defaults to Clip.none. Additionally, elevation must be non-negative.

If color, elevation, or shape are null, their BottomAppBarTheme values will be used. If the corresponding BottomAppBarTheme property is null, then the default specified in the property's documentation will be used.

Implementation

const BottomAppBar({
  super.key,
  this.color,
  this.elevation,
  this.shape,
  this.clipBehavior = Clip.none,
  this.notchMargin = 4.0,
  this.child,
  this.padding,
  this.surfaceTintColor,
  this.shadowColor,
  this.height,
}) : assert(elevation == null || elevation >= 0.0);