mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01:00
20 lines
661 B
Dart
20 lines
661 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/widgets/asset_viewer/video_position.dart';
|
|
|
|
/// The video controls for the [videoPlayerControlsProvider]
|
|
class VideoControls extends ConsumerWidget {
|
|
const VideoControls({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
final isPortrait =
|
|
MediaQuery.orientationOf(context) == Orientation.portrait;
|
|
return isPortrait
|
|
? const VideoPosition()
|
|
: const Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 60.0),
|
|
child: VideoPosition(),
|
|
);
|
|
}
|
|
}
|