added upload with multiple files #61
| @@ -105,7 +105,7 @@ class _FilesState extends State<Files> { | ||||
|     pushScreen( | ||||
|       context, | ||||
|       withNavBar: false, | ||||
|       screen: FilesUploadDialog(filePaths: paths, remotePath: widget.path.join('/'), onUploadFinished: (uploadedFilePaths) => _query), | ||||
|       screen: FilesUploadDialog(filePaths: paths, remotePath: widget.path.join('/'), onUploadFinished: (uploadedFilePaths) => _query()), | ||||
|     ); | ||||
|  | ||||
|     return; | ||||
| 
					
					Pupsi marked this conversation as resolved
					
				 | ||||
|   | ||||
| @@ -108,11 +108,14 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> { | ||||
|                     '(Datei ${_uploadableFiles.indexOf(conflictingFiles.first)+1})', | ||||
|                 textAlign: TextAlign.left, | ||||
|               ) : | ||||
|               Text( | ||||
|                 '${conflictingFiles.length} Dateien mit den Namen ${conflictingFiles.map((e) => e.fileName).toList()} existieren bereits.\n' | ||||
|                     '(Dateien ${conflictingFiles.map((e) => _uploadableFiles.indexOf(e)+1).toList()})', | ||||
|                 textAlign: TextAlign.left, | ||||
|               SingleChildScrollView( | ||||
|                 child: Text( | ||||
|                   '${conflictingFiles.length} Dateien mit den Namen: ${conflictingFiles.map((e) => '\n${e.fileName}').join(', ')}\n existieren bereits.\n' | ||||
|                       '(Dateien ${conflictingFiles.map((e) => _uploadableFiles.indexOf(e)+1).join(', ')})', | ||||
|                   textAlign: TextAlign.left, | ||||
|                 ), | ||||
|               ), | ||||
|  | ||||
|               actions: [ | ||||
|                 TextButton( | ||||
|                   onPressed: () { | ||||
| @@ -126,8 +129,8 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> { | ||||
|                       context: context, | ||||
|                       builder: (context) { | ||||
|                         return ConfirmDialog( | ||||
|                           title: 'Bist du sicher?', | ||||
|                           content: '', | ||||
|                           title: 'Bestätigen', | ||||
|                           content: 'Bist du sicher, dass du ${conflictingFiles.map((e) => e.fileName).toList()} überschreiben möchtest?', | ||||
|                           onConfirm: () { | ||||
|                             Navigator.pop(context, true); | ||||
|                           }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	
funktioniert das _query callback ohne die klammern()?
wofüg irst das leere return hier?