buildTrendingButton method

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

Allows user to launch trending playlists page.

Implementation

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