refactor: one line

Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
This commit is contained in:
Yaros
2025-12-09 18:48:16 +01:00
committed by GitHub
parent 147cdfa1e2
commit 5dc960b872

View File

@@ -106,8 +106,7 @@ class NativeVideoViewer extends HookConsumerWidget {
// Pass a file:// URI so Android's Uri.parse doesn't // Pass a file:// URI so Android's Uri.parse doesn't
// interpret characters like '#' as fragment identifiers. // interpret characters like '#' as fragment identifiers.
final fileUri = Uri.file(file.path).toString(); final source = await VideoSource.init(path: file.uri.toString(), type: VideoSourceType.file);
final source = await VideoSource.init(path: fileUri, type: VideoSourceType.file);
return source; return source;
} }