getActions method

  1. @override
List<Widget> getActions(
  1. {required BuildContext context,
  2. required WidgetRef ref,
  3. required AppModel appModel}
)
override

Get the floating search bar actions of this source when it is the active source being displayed on its respective media type tab.

Implementation

@override
List<Widget> getActions({
  required BuildContext context,
  required WidgetRef ref,
  required AppModel appModel,
}) {
  return [
    buildSettingsButton(
      appModel: appModel,
      context: context,
      ref: ref,
    ),
    FloatingSearchBarAction(
      child: JidoujishoIconButton(
        size: Theme.of(context).textTheme.titleLarge?.fontSize,
        tooltip: t.stream,
        icon: Icons.link,
        onTap: () async {
          showStreamDialog(
            appModel: appModel,
            context: context,
            ref: ref,
          );
        },
      ),
    ),
  ];
}