SearchAppBarWidget constructor
const
SearchAppBarWidget({
- Key? key,
- required Function searchTextDidChange,
- required Function onValueSubmitted,
- required TextEditingController placeNameTextController,
- required String hintText,
- Color? appBarColor,
- Color? backButtonColor,
- Color? infoButtonColor,
- Color? clearButtonColor,
- Color? cursorColor,
- Color? searchTextColor,
Implementation
const SearchAppBarWidget({
Key? key,
required Function searchTextDidChange,
required Function onValueSubmitted,
required TextEditingController placeNameTextController,
required String hintText,
Color? appBarColor,
Color? backButtonColor,
Color? infoButtonColor,
Color? clearButtonColor,
Color? cursorColor,
Color? searchTextColor,
}) : _searchTextDidChange = searchTextDidChange,
_onValueSubmitted = onValueSubmitted,
_hintText = hintText,
_placeNameTextController = placeNameTextController,
_appBarColor = appBarColor ?? Colors.grey,
_infoButtonColor = infoButtonColor ?? Colors.white,
_backButtonColor = backButtonColor ?? Colors.white,
_clearButtonColor = clearButtonColor ?? Colors.white,
_cursorColor = cursorColor ?? Colors.white,
_searchTextColor = searchTextColor ?? Colors.white,
super(key: key);