Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
dartfmt -w .
  • Loading branch information
ditman committed Feb 23, 2021
commit 75338dad314aeafab3c5712af8e663c29edc2d4c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class DomHelper {
);

inputElement.onChange.first.then((_) {
final List<XFile> files = inputElement.files!.map(_convertFileToXFile).toList();
final List<XFile> files =
inputElement.files!.map(_convertFileToXFile).toList();
inputElement.remove();
completer.complete(files);
});
Expand All @@ -59,6 +60,7 @@ class DomHelper {
Url.createObjectUrl(file),
name: file.name,
length: file.size,
lastModified: DateTime.fromMillisecondsSinceEpoch(file.lastModified ?? DateTime.now().millisecondsSinceEpoch),
lastModified: DateTime.fromMillisecondsSinceEpoch(
file.lastModified ?? DateTime.now().millisecondsSinceEpoch),
);
}