SearchAppbar constructor
SearchAppbar({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- dynamic leading,
- SearchBarLeadClickCallback? leadClickCallback,
- SearchBarDismissClickCallback? dismissClickCallback,
- SearchBarInputChangeCallback? searchBarInputChangeCallback,
- SearchBarInputSubmitCallback? searchBarInputSubmitCallback,
- String? hint,
- TextStyle? hintStyle,
- TextStyle? dismissStyle,
- bool showDivider = true,
- bool autoFocus = true,
- VoidCallback? onClearTap,
- SystemUiOverlayStyle? systemOverlayStyle,
- TextStyle? inputTextStyle,
- 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));
}