buildTweaksButton method

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

Tweaks bar action.

Implementation

Widget buildTweaksButton(
    {required BuildContext context,
    required WidgetRef ref,
    required AppModel appModel}) {
  return FloatingSearchBarAction(
    child: JidoujishoIconButton(
      size: Theme.of(context).textTheme.titleLarge?.fontSize,
      tooltip: t.tweaks,
      icon: Icons.tune,
      onTap: () {
        showDialog(
          context: context,
          builder: (context) => const TtuSettingsDialogPage(),
        );
      },
    ),
  );
}