MiuixFloatingNavigationBar constructor

const MiuixFloatingNavigationBar({
  1. Key? key,
  2. required List<Widget> children,
  3. Color? color,
  4. MiuixNavigationBarColors? colors,
  5. double cornerRadius = MiuixFloatingNavigationBarDefaults.cornerRadius,
  6. AlignmentGeometry horizontalAlignment = AlignmentDirectional.center,
  7. double horizontalOutSidePadding = MiuixFloatingNavigationBarDefaults.horizontalOutSidePadding,
  8. double shadowElevation = MiuixFloatingNavigationBarDefaults.shadowElevation,
  9. bool showDivider = false,
  10. bool defaultWindowInsetsPadding = true,
})

Implementation

const MiuixFloatingNavigationBar({
  super.key,
  required this.children,
  this.color,
  this.colors,
  this.cornerRadius = MiuixFloatingNavigationBarDefaults.cornerRadius,
  this.horizontalAlignment = AlignmentDirectional.center,
  this.horizontalOutSidePadding =
      MiuixFloatingNavigationBarDefaults.horizontalOutSidePadding,
  this.shadowElevation = MiuixFloatingNavigationBarDefaults.shadowElevation,
  this.showDivider = false,
  this.defaultWindowInsetsPadding = true,
}) : assert(children.length >= 2 && children.length <= 5);