FlutstrapNavbar constructor

const FlutstrapNavbar({
  1. Key? key,
  2. Widget? brand,
  3. String? brandText,
  4. Widget? brandImage,
  5. required List<FSNavbarItem> items,
  6. List<Widget>? customItems,
  7. FSNavbarVariant variant = FSNavbarVariant.light,
  8. FSNavbarPosition position = FSNavbarPosition.static,
  9. bool expand = false,
  10. String? searchPlaceholder,
  11. ValueChanged<String>? onSearch,
  12. bool showSearch = false,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. double elevation = 0,
  16. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0),
  17. bool fluid = false,
})

Implementation

const FlutstrapNavbar({
  super.key,
  this.brand,
  this.brandText,
  this.brandImage,
  required this.items,
  this.customItems,
  this.variant = FSNavbarVariant.light,
  this.position = FSNavbarPosition.static,
  this.expand = false,
  this.searchPlaceholder,
  this.onSearch,
  this.showSearch = false,
  this.backgroundColor,
  this.foregroundColor,
  this.elevation = 0,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.fluid = false,
});