SmartSearchBox constructor

const SmartSearchBox({
  1. Key? key,
  2. double width = 600,
  3. double height = 600,
  4. String searchHint = 'Search for ...',
  5. String notFoundHintTitle = 'No result found',
  6. String notFoundHintSubTitle = 'Sorry, we couldn\'t find the search term.',
  7. String filterDescription = 'I\'m looking for ...',
  8. required Future<Map<String, List<SmartSearchResult>>> resultsQuery(
    1. String,
    2. List<String>
    ),
  9. Color? dialogBackgroundColor,
  10. Color? dialogShadowColor,
  11. Color? dialogSurfaceTintColor,
  12. ShapeBorder? dialogShape,
  13. AlignmentGeometry? dialogAlignment,
})

Implementation

const SmartSearchBox({
  super.key,
  this.width = 600,
  this.height = 600,
  this.searchHint = 'Search for ...',
  this.notFoundHintTitle = 'No result found',
  this.notFoundHintSubTitle = 'Sorry, we couldn\'t find the search term.',
  this.filterDescription =  'I\'m looking for ...',
  required this.resultsQuery,
  this.dialogBackgroundColor,
  this.dialogShadowColor,
  this.dialogSurfaceTintColor,
  this.dialogShape,
  this.dialogAlignment,
});