Added inline file download progressbar, handle OpenFile directly and handle errors

This commit is contained in:
2023-03-12 17:23:55 +01:00
parent 58bbfc6329
commit d21dc26a18
5 changed files with 146 additions and 144 deletions

View File

@ -14,7 +14,11 @@ class CacheableFile {
DateTime? createdAt;
DateTime? modifiedAt;
CacheableFile(this.path, this.isDirectory, this.name, {this.mimeType, this.size, this.eTag, this.createdAt, this.modifiedAt});
@JsonKey(includeFromJson: false, includeToJson: false)
bool currentlyDownloading = false;
CacheableFile({required this.path, required this.isDirectory, required this.name, this.mimeType, this.size, this.eTag, this.createdAt, this.modifiedAt});
CacheableFile.fromDavFile(WebDavFile file) {
path = file.path;

View File

@ -8,9 +8,9 @@ part of 'cacheableFile.dart';
CacheableFile _$CacheableFileFromJson(Map<String, dynamic> json) =>
CacheableFile(
json['path'] as String,
json['isDirectory'] as bool,
json['name'] as String,
path: json['path'] as String,
isDirectory: json['isDirectory'] as bool,
name: json['name'] as String,
mimeType: json['mimeType'] as String?,
size: json['size'] as int?,
eTag: json['eTag'] as String?,