buildSearchClearButton method

Widget buildSearchClearButton()

Shows when the user has focused the search bar.

Implementation

Widget buildSearchClearButton() {
  return FloatingSearchBarAction(
    showIfOpened: true,
    showIfClosed: false,
    child: JidoujishoIconButton(
      size: textTheme.titleLarge?.fontSize,
      tooltip: t.clear_search_title,
      icon: Icons.manage_search,
      onTap: showDeleteSearchHistoryPrompt,
    ),
  );
}