buildChangeSourceButton method
Allows user to swap the current active MediaSource.
Implementation
Widget buildChangeSourceButton() {
return FloatingSearchBarAction(
child: JidoujishoIconButton(
size: textTheme.titleLarge?.fontSize,
tooltip: t.change_source,
icon: mediaSource.icon,
onTap: () async {
await showDialog(
barrierDismissible: true,
context: context,
builder: (context) => MediaSourcePickerDialogPage(
mediaType: mediaType,
),
);
mediaType.refreshTab();
},
),
);
}