added upload with multiple files #61

Merged
MineTec merged 7 commits from develop-uploadMultipleFiles into develop 2024-04-09 08:21:55 +00:00
186 changed files with 1252 additions and 778 deletions
Showing only changes of commit 8131ccae1e - Show all commits

View File

@ -105,7 +105,7 @@ class _FilesState extends State<Files> {
pushScreen( pushScreen(
context, context,
withNavBar: false, 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; return;
Pupsi marked this conversation as resolved
Review

funktioniert das _query callback ohne die klammern()?

funktioniert das _query callback ohne die klammern()?
Review

wofüg irst das leere return hier?

wofüg irst das leere return hier?

View File

@ -108,11 +108,14 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
'(Datei ${_uploadableFiles.indexOf(conflictingFiles.first)+1})', '(Datei ${_uploadableFiles.indexOf(conflictingFiles.first)+1})',
textAlign: TextAlign.left, textAlign: TextAlign.left,
) : ) :
Text( SingleChildScrollView(
'${conflictingFiles.length} Dateien mit den Namen ${conflictingFiles.map((e) => e.fileName).toList()} existieren bereits.\n' child: Text(
'(Dateien ${conflictingFiles.map((e) => _uploadableFiles.indexOf(e)+1).toList()})', '${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, textAlign: TextAlign.left,
), ),
),
actions: [ actions: [
Pupsi marked this conversation as resolved Outdated

Umbenennen

`Umbenennen`
Outdated
Review

Passt Bearbeiten nicht besser? Es gibt ja dann auch noch die Möglichkeit neben dem Umbenennen auch die Datei zu löschen oder komplett abzubrechen.

Passt Bearbeiten nicht besser? Es gibt ja dann auch noch die Möglichkeit neben dem Umbenennen auch die Datei zu löschen oder komplett abzubrechen.
TextButton( TextButton(
onPressed: () { onPressed: () {
@ -126,8 +129,8 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
context: context, context: context,
builder: (context) { builder: (context) {
return ConfirmDialog( return ConfirmDialog(
title: 'Bist du sicher?', title: 'Bestätigen',
content: '', content: 'Bist du sicher, dass du ${conflictingFiles.map((e) => e.fileName).toList()} überschreiben möchtest?',
onConfirm: () { onConfirm: () {
Navigator.pop(context, true); Navigator.pop(context, true);
}, },