buildPickVideoButton method

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

Allows user to pick a video file.

Implementation

Widget buildPickVideoButton({
  required BuildContext context,
  required WidgetRef ref,
  required AppModel appModel,
}) {
  return FloatingSearchBarAction(
    showIfOpened: true,
    child: JidoujishoIconButton(
      size: Theme.of(context).textTheme.titleLarge?.fontSize,
      tooltip: t.pick_video_file,
      icon: Icons.perm_media,
      onTap: () => pickVideoFile(
        context: context,
        appModel: appModel,
        ref: ref,
        pushReplacement: false,
      ),
    ),
  );
}