buildLaunchButton method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
Allows user to close the floating search bar of a media type tab page when open.
Implementation
Widget buildLaunchButton({
required BuildContext context,
required WidgetRef ref,
required AppModel appModel,
}) {
return FloatingSearchBarAction(
showIfOpened: true,
child: JidoujishoIconButton(
size: Theme.of(context).textTheme.titleLarge?.fontSize,
tooltip: t.manager,
icon: Icons.local_library_outlined,
onTap: () {
appModel.openMedia(
context: context,
ref: ref,
mediaSource: this,
);
},
),
);
}