solved pr comments; picking multiple Images from Gallery is now possible
This commit is contained in:
@ -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),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user