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();

View File

@ -5,7 +5,7 @@ import '../../../../storage/base/settingsProvider.dart';
import '../../../../widget/confirmDialog.dart';
class GradeAverage extends StatefulWidget {
const GradeAverage({Key? key}) : super(key: key);
const GradeAverage({super.key});
@override
State<GradeAverage> createState() => _GradeAverageState();

View File

@ -8,7 +8,7 @@ import 'messageView.dart';
class Message extends StatefulWidget {
const Message({Key? key}) : super(key: key);
const Message({super.key});
@override
State<Message> createState() => _MessageState();

View File

@ -8,7 +8,7 @@ import '../../../../widget/confirmDialog.dart';
class MessageView extends StatefulWidget {
final String basePath;
final GetMessagesResponseObject message;
const MessageView({Key? key, required this.basePath, required this.message}) : super(key: key);
const MessageView({super.key, required this.basePath, required this.message});
@override
State<MessageView> createState() => _MessageViewState();

View File

@ -11,7 +11,7 @@ import 'roomplan/roomplan.dart';
import 'share/selectShareTypeDialog.dart';
class Overhang extends StatelessWidget {
const Overhang({Key? key}) : super(key: key);
const Overhang({super.key});
@override
Widget build(BuildContext context) {

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
class Roomplan extends StatelessWidget {
const Roomplan({Key? key}) : super(key: key);
const Roomplan({super.key});
@override
Widget build(BuildContext context) {

View File

@ -18,7 +18,7 @@ import 'joinChat.dart';
import 'searchChat.dart';
class ChatList extends StatefulWidget {
const ChatList({Key? key}) : super(key: key);
const ChatList({super.key});
@override
State<ChatList> createState() => _ChatListState();

View File

@ -21,7 +21,7 @@ class ChatView extends StatefulWidget {
final String selfId;
final UserAvatar avatar;
const ChatView({Key? key, required this.room, required this.selfId, required this.avatar}) : super(key: key);
const ChatView({super.key, required this.room, required this.selfId, required this.avatar});
@override
State<ChatView> createState() => _ChatViewState();

View File

@ -34,7 +34,7 @@ class ChatBubble extends StatefulWidget {
required this.bubbleData,
required this.chatData,
required this.refetch,
Key? key}) : super(key: key);
super.key});
@override
State<ChatBubble> createState() => _ChatBubbleState();

View File

@ -18,7 +18,7 @@ import '../../files/fileUploadDialog.dart';
class ChatTextfield extends StatefulWidget {
final String sendToToken;
const ChatTextfield(this.sendToToken, {Key? key}) : super(key: key);
const ChatTextfield(this.sendToToken, {super.key});
@override
State<ChatTextfield> createState() => _ChatTextfieldState();

View File

@ -23,7 +23,7 @@ class ChatTile extends StatefulWidget {
final bool disableContextActions;
final bool hasDraft;
const ChatTile({Key? key, required this.data, required this.query, this.disableContextActions = false, this.hasDraft = false}) : super(key: key);
const ChatTile({super.key, required this.data, required this.query, this.disableContextActions = false, this.hasDraft = false});
@override
State<ChatTile> createState() => _ChatTileState();

View File

@ -72,7 +72,7 @@ class _MessageReactionsState extends State<MessageReactions> {
);
}).toList(),
);
}).toList()
})
],
);
},

View File

@ -7,7 +7,7 @@ import 'CrossPainter.dart';
class AppointmentComponent extends StatefulWidget {
final CalendarAppointmentDetails details;
final bool crossedOut;
const AppointmentComponent({Key? key, required this.details, this.crossedOut = false}) : super(key: key);
const AppointmentComponent({super.key, required this.details, this.crossedOut = false});
@override
State<AppointmentComponent> createState() => _AppointmentComponentState();

View File

@ -3,7 +3,7 @@ import 'package:syncfusion_flutter_calendar/calendar.dart';
class TimeRegionComponent extends StatefulWidget {
final TimeRegionDetails details;
const TimeRegionComponent({Key? key, required this.details}) : super(key: key);
const TimeRegionComponent({super.key, required this.details});
@override
State<TimeRegionComponent> createState() => _TimeRegionComponentState();

View File

@ -20,7 +20,7 @@ import 'timeRegionComponent.dart';
import 'timetableEvents.dart';
class Timetable extends StatefulWidget {
const Timetable({Key? key}) : super(key: key);
const Timetable({super.key});
@override
State<Timetable> createState() => _TimetableState();