SearchAppBar constructor
const
SearchAppBar({
- Key? key,
- String? hintText = 'Search...',
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onBack,
- VoidCallback? onClear,
- bool autofocus = true,
- Color? backgroundColor,
- List<
Color> ? gradientColors, - Color? iconColor,
- Color? textColor,
- Color? hintColor,
- double height = 60.0,
- List<
Widget> ? actions, - InputDecoration? inputDecoration,
- TextStyle? textStyle,
- bool showBackButton = true,
- IconData backIcon = Icons.arrow_back_ios,
- bool showClearButton = true,
- int maxSearchLength = 200,
- String? semanticLabel,
- 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,
});