mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 01:11:07 +03:00
refactor: one line
Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -106,8 +106,7 @@ class NativeVideoViewer extends HookConsumerWidget {
|
||||
|
||||
// Pass a file:// URI so Android's Uri.parse doesn't
|
||||
// interpret characters like '#' as fragment identifiers.
|
||||
final fileUri = Uri.file(file.path).toString();
|
||||
final source = await VideoSource.init(path: fileUri, type: VideoSourceType.file);
|
||||
final source = await VideoSource.init(path: file.uri.toString(), type: VideoSourceType.file);
|
||||
return source;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user