SearchView constructor

const SearchView({
  1. Key? key,
  2. required AppTheme theme,
  3. required TextEditingController controller,
  4. void onChanged(
    1. String
    )?,
  5. void onClosedPressed()?,
  6. String hintText = '',
  7. double borderRadius = 8.0,
  8. double iconSize = 20,
  9. double textFontSize = 14,
  10. Icon? prefixIcon,
  11. Icon? suffixIcon,
  12. TextStyle? textStyle,
  13. EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 4.0),
})

Implementation

const SearchView({
  super.key,
  required this.theme,
  required this.controller,
  this.onChanged,
  this.onClosedPressed,
  this.hintText = '',
  this.borderRadius = 8.0,
  this.iconSize = 20,
  this.textFontSize = 14,
  this.prefixIcon,
  this.suffixIcon,
  this.textStyle,
  this.contentPadding = const EdgeInsets.symmetric(vertical: 4.0),
});