build: Update packages and flutter super.key refactoring

This commit is contained in:
krille-chan 2023-10-28 13:03:16 +02:00
commit eca4825c70
No known key found for this signature in database
129 changed files with 294 additions and 324 deletions

View file

@ -24,9 +24,9 @@ class ChatDetails extends StatefulWidget {
final String roomId;
const ChatDetails({
Key? key,
super.key,
required this.roomId,
}) : super(key: key);
});
@override
ChatDetailsController createState() => ChatDetailsController();
@ -109,8 +109,7 @@ class ChatDetailsController extends State<ChatDetails> {
if (adminMode)
AlertDialogAction(label: L10n.of(context)!.create, key: 'new'),
...aliases.result!
.map((alias) => AlertDialogAction(key: alias, label: alias))
.toList(),
.map((alias) => AlertDialogAction(key: alias, label: alias)),
],
);
if (select == null) return;

View file

@ -19,7 +19,7 @@ import '../../utils/url_launcher.dart';
class ChatDetailsView extends StatelessWidget {
final ChatDetailsController controller;
const ChatDetailsView(this.controller, {Key? key}) : super(key: key);
const ChatDetailsView(this.controller, {super.key});
@override
Widget build(BuildContext context) {

View file

@ -10,7 +10,7 @@ import '../user_bottom_sheet/user_bottom_sheet.dart';
class ParticipantListItem extends StatelessWidget {
final User user;
const ParticipantListItem(this.user, {Key? key}) : super(key: key);
const ParticipantListItem(this.user, {super.key});
@override
Widget build(BuildContext context) {