buildClearButton method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
Menu bar action.
Implementation
Widget buildClearButton(
{required BuildContext context,
required WidgetRef ref,
required AppModel appModel}) {
return FloatingSearchBarAction(
child: JidoujishoIconButton(
size: Theme.of(context).textTheme.titleLarge?.fontSize,
tooltip: t.clear_text_title,
icon: Icons.clear_all,
onTap: () {
showClearPrompt(
appModel: appModel,
context: context,
ref: ref,
);
},
),
);
}