feature: Ask for playback type when media is downloaded (#361)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-06-01 17:05:16 +02:00 committed by GitHub
parent 563d267566
commit 5ef7936c33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 194 additions and 148 deletions

View file

@ -16,8 +16,11 @@ Future<void> showDialogAdaptive(
return showDialog(
context: context,
useSafeArea: false,
builder: (context) => Dialog.fullscreen(
child: builder(context),
builder: (context) => Padding(
padding: MediaQuery.paddingOf(context),
child: Dialog.fullscreen(
child: builder(context),
),
),
);
}

View file

@ -95,7 +95,7 @@ class _VideoPlaybackInformation extends ConsumerWidget {
children: [
Row(
mainAxisSize: MainAxisSize.min,
children: [const Text('type: '), Text(playbackModel.label ?? "")],
children: [const Text('type: '), Text(playbackModel.label(context) ?? "")],
),
if (sessionInfo.transCodeInfo != null) ...[
Text("Transcoding", style: Theme.of(context).textTheme.titleMedium),

View file

@ -461,14 +461,14 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
),
),
const Spacer(),
if (playbackModel.label != null)
if (playbackModel != null)
InkWell(
onTap: () => showVideoPlaybackInformation(context),
child: Card(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
child: Text(
playbackModel?.label ?? "",
playbackModel.label(context) ?? "",
),
),
),