Apply dart auto fixes

This commit is contained in:
2024-01-14 11:58:16 +01:00
parent b0bddb5cd7
commit 9edbfd81af
29 changed files with 29 additions and 31 deletions

View File

@ -21,7 +21,7 @@ class FileElement extends StatefulWidget {
final CacheableFile file;
final List<String> path;
final void Function() refetch;
const FileElement(this.file, this.path, this.refetch, {Key? key}) : super(key: key);
const FileElement(this.file, this.path, this.refetch, {super.key});
static Future<DownloaderCore> download(BuildContext context, String remotePath, String name, Function(double) onProgress, Function(OpenResult) onDone) async {
Directory paths = await getTemporaryDirectory();

View File

@ -15,7 +15,7 @@ class FileUploadDialog extends StatefulWidget {
final bool doShowFinish;
const FileUploadDialog({Key? key, required this.localPath, required this.remotePath, required this.fileName, required this.onUploadFinished, this.doShowFinish = true}) : super(key: key);
const FileUploadDialog({super.key, required this.localPath, required this.remotePath, required this.fileName, required this.onUploadFinished, this.doShowFinish = true});
@override
State<FileUploadDialog> createState() => _FileUploadDialogState();

View File

@ -20,7 +20,7 @@ import 'fileElement.dart';
class Files extends StatefulWidget {
final List<String> path;
const Files(this.path, {Key? key}) : super(key: key);
const Files(this.path, {super.key});
@override
State<Files> createState() => _FilesState();