buildOpenLinkButton method

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

Menu bar action.

Implementation

Widget buildOpenLinkButton(
    {required BuildContext context,
    required WidgetRef ref,
    required AppModel appModel}) {
  return FloatingSearchBarAction(
    child: JidoujishoIconButton(
      size: Theme.of(context).textTheme.titleLarge?.fontSize,
      tooltip: t.browse,
      icon: Icons.launch,
      onTap: () => openLinkAction(
        context: context,
        ref: ref,
        appModel: appModel,
      ),
    ),
  );
}