solved pr comments; picking multiple Images from Gallery is now possible

This commit is contained in:
2024-04-08 22:39:28 +02:00
parent d8c72a5d28
commit cf4dea566e
4 changed files with 13 additions and 23 deletions

View File

@ -170,7 +170,6 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
);
if(uploadTask.statusCode < 200 || uploadTask.statusCode > 299) {
// error code
setState(() {
_isUploading = false;
_overallProgressValue = 0.0;
@ -241,7 +240,7 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
value: currentFile._uploadProgress,
borderRadius: const BorderRadius.all(Radius.circular(2)),
) : null,
leading: Container(
trailing: Container(
width: 24,
height: 24,
padding: EdgeInsets.zero,
@ -256,23 +255,6 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
});
}
},
icon: const Icon(Icons.close_outlined),
),
),
trailing: Container(
width: 24,
height: 24,
padding: EdgeInsets.zero,
child: IconButton(
tooltip: 'Namen löschen',
padding: EdgeInsets.zero,
onPressed: () {
if(!_isUploading) {
setState(() {
currentFile.fileName = '';
});
}
},
icon: const Icon(Icons.delete_outlined),
),
),