SearchAppbar constructor

SearchAppbar({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. dynamic leading,
  5. SearchBarLeadClickCallback? leadClickCallback,
  6. SearchBarDismissClickCallback? dismissClickCallback,
  7. SearchBarInputChangeCallback? searchBarInputChangeCallback,
  8. SearchBarInputSubmitCallback? searchBarInputSubmitCallback,
  9. String? hint,
  10. TextStyle? hintStyle,
  11. TextStyle? dismissStyle,
  12. bool showDivider = true,
  13. bool autoFocus = true,
  14. VoidCallback? onClearTap,
  15. SystemUiOverlayStyle? systemOverlayStyle,
  16. TextStyle? inputTextStyle,
  17. AppBarConfig? themeData,
})

Implementation

SearchAppbar(
    {super.key,
    this.controller,
    this.focusNode,
    this.leading,
    this.leadClickCallback,
    this.dismissClickCallback,
    this.searchBarInputChangeCallback,
    this.searchBarInputSubmitCallback,
    this.hint,
    this.hintStyle,
    this.dismissStyle,
    this.showDivider = true,
    this.autoFocus = true,
    this.onClearTap,
    this.systemOverlayStyle,
    this.inputTextStyle,
    this.themeData})
    : super(child: const Center(), preferredSize: const Size(0, 0)) {
  themeData ??= AppBarConfig.dark();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .appBarConfig
      .merge(themeData)
      .merge(AppBarConfig(systemUiOverlayStyle: systemOverlayStyle));
}