MiuixFloatingNavigationBar constructor
const
MiuixFloatingNavigationBar({
- Key? key,
- required List<
Widget> children, - Color? color,
- MiuixNavigationBarColors? colors,
- double cornerRadius = MiuixFloatingNavigationBarDefaults.cornerRadius,
- AlignmentGeometry horizontalAlignment = AlignmentDirectional.center,
- double horizontalOutSidePadding = MiuixFloatingNavigationBarDefaults.horizontalOutSidePadding,
- double shadowElevation = MiuixFloatingNavigationBarDefaults.shadowElevation,
- bool showDivider = false,
- 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);