SearchAppBar constructor

const SearchAppBar({
  1. Key? key,
  2. String? hintText = 'Search...',
  3. TextEditingController? controller,
  4. ValueChanged<String>? onChanged,
  5. ValueChanged<String>? onSubmitted,
  6. VoidCallback? onBack,
  7. VoidCallback? onClear,
  8. bool autofocus = true,
  9. Color? backgroundColor,
  10. List<Color>? gradientColors,
  11. Color? iconColor,
  12. Color? textColor,
  13. Color? hintColor,
  14. double height = 60.0,
  15. List<Widget>? actions,
  16. InputDecoration? inputDecoration,
  17. TextStyle? textStyle,
  18. bool showBackButton = true,
  19. IconData backIcon = Icons.arrow_back_ios,
  20. bool showClearButton = true,
  21. int maxSearchLength = 200,
  22. String? semanticLabel,
  23. bool? enableSecurity,
})

Implementation

const SearchAppBar({
  super.key,
  this.hintText = 'Search...',
  this.controller,
  this.onChanged,
  this.onSubmitted,
  this.onBack,
  this.onClear,
  this.autofocus = true,
  this.backgroundColor,
  this.gradientColors,
  this.iconColor,
  this.textColor,
  this.hintColor,
  this.height = 60.0,
  this.actions,
  this.inputDecoration,
  this.textStyle,
  this.showBackButton = true,
  this.backIcon = Icons.arrow_back_ios,
  this.showClearButton = true,
  this.maxSearchLength = 200,
  this.semanticLabel,
  this.enableSecurity,
});