mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-11 00:10:29 -07:00
feature: Ask for playback type when media is downloaded (#361)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
563d267566
commit
5ef7936c33
9 changed files with 194 additions and 148 deletions
|
|
@ -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),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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) ?? "",
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue