Fix download asset loading indicator position (#2974)

This commit is contained in:
Sergey Kondrikov 2023-06-27 16:48:20 +03:00 committed by GitHub
parent 61e5e65173
commit f5d9826b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,12 @@ class VideoViewerPage extends HookConsumerWidget {
placeholder: placeholder,
),
if (downloadAssetStatus == DownloadAssetStatus.loading)
const Center(
child: ImmichLoadingIndicator(),
SizedBox(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: const Center(
child: ImmichLoadingIndicator(),
),
),
],
);