FloatingNavbarDecoration constructor

FloatingNavbarDecoration({
  1. Color? backgroundColor,
  2. Color? unselectedIconColor,
  3. Color? selectedIconColor,
  4. EdgeInsetsGeometry? margin,
  5. BorderRadius? borderRadius,
  6. double? height,
  7. bool? showSelectedLabels,
  8. bool? isExtended,
})

Implementation

FloatingNavbarDecoration(
    {Color? backgroundColor,
    Color? unselectedIconColor,
    Color? selectedIconColor,
    EdgeInsetsGeometry? margin,
    BorderRadius? borderRadius,
    double? height,
    bool? showSelectedLabels,
    bool? isExtended})
    : super(
        backgroundColor: backgroundColor,
        borderRadius: borderRadius,
        height: height ?? kFloatingNavbarHeight,

        /// margin for the floaiting navbar defaults to EdgeInsets.symmetric(horizontal: 48.0, vertical: 20),
        ///
        margin: margin,
        unselectedIconColor: unselectedIconColor,
        selectedIconColor: selectedIconColor,
        showSelectedLabels: showSelectedLabels ?? true,
        isExtended: isExtended ?? false,
      );