1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-21 17:25:16 +00:00

Start to fix null safety migration errors

This commit is contained in:
2022-03-10 19:39:57 +01:00
parent ab2c5da0da
commit 3a997cdc56
258 changed files with 2879 additions and 2912 deletions

View File

@ -7,8 +7,8 @@ class AutoSizeDialogContentWidget extends StatelessWidget {
final Widget child;
const AutoSizeDialogContentWidget({
Key key,
@required this.child,
Key? key,
required this.child,
}) : super(key: key);
@override

View File

@ -10,7 +10,7 @@ class CancelDialogButton extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(tr("Cancel").toUpperCase()),
child: Text(tr("Cancel")!.toUpperCase()),
textColor: Colors.red,
);
}

View File

@ -10,9 +10,9 @@ class ConfirmDialogButton<T> extends StatelessWidget {
final T value;
const ConfirmDialogButton({
Key key,
Key? key,
this.enabled = true,
@required this.value,
required this.value,
}) : assert(enabled != null),
super(key: key);
@ -20,7 +20,7 @@ class ConfirmDialogButton<T> extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialButton(
onPressed: enabled ? () => Navigator.of(context).pop(value) : null,
child: Text(tr("Confirm").toUpperCase()),
child: Text(tr("Confirm")!.toUpperCase()),
textColor: Colors.green,
);
}