Do not preload videos
This commit is contained in:
parent
f12ef4fe6a
commit
2f4b4c3280
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ class _DetailPageState extends State<DetailPage> {
|
|||
}
|
||||
|
||||
void _preloadFile(File file) {
|
||||
if (file.fileType == FileType.video) {
|
||||
return;
|
||||
}
|
||||
if (file.localId == null) {
|
||||
file.getBytes().then((data) {
|
||||
BytesLruCache.put(file, data);
|
||||
|
|
Loading…
Add table
Reference in a new issue