Added inline file download progressbar, handle OpenFile directly and handle errors
This commit is contained in:
@ -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;
|
||||
|
@ -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?,
|
||||
|
Reference in New Issue
Block a user