buildSearchButton method

Widget buildSearchButton(
  1. {required BuildContext context,
  2. required WidgetRef ref,
  3. required AppModel appModel}
)

Menu bar action.

Implementation

Widget buildSearchButton(
    {required BuildContext context,
    required WidgetRef ref,
    required AppModel appModel}) {
  return FloatingSearchBarAction(
    child: JidoujishoIconButton(
      size: Theme.of(context).textTheme.titleLarge?.fontSize,
      tooltip: t.set_media,
      enabledColor: isOverride ? Colors.red : null,
      icon: Icons.audio_file,
      onTap: () {
        showSearchDialog(context: context);
      },
    ),
  );
}