updated project linter-rules and enforced them
This commit is contained in:
@ -8,10 +8,10 @@ class ConfirmDialog extends StatelessWidget {
|
||||
final String confirmButton;
|
||||
final String cancelButton;
|
||||
final void Function() onConfirm;
|
||||
const ConfirmDialog({super.key, required this.title, this.content = "", this.icon, this.confirmButton = "Ok", this.cancelButton = "Abbrechen", required this.onConfirm});
|
||||
const ConfirmDialog({super.key, required this.title, this.content = '', this.icon, this.confirmButton = 'Ok', this.cancelButton = 'Abbrechen', required this.onConfirm});
|
||||
|
||||
void asDialog(BuildContext context) {
|
||||
showDialog(context: context, builder: (context) => build(context));
|
||||
showDialog(context: context, builder: build);
|
||||
}
|
||||
|
||||
@override
|
||||
@ -36,9 +36,9 @@ class ConfirmDialog extends StatelessWidget {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => ConfirmDialog(
|
||||
title: "Link öffnen",
|
||||
content: "Möchtest du den folgenden Link öffnen?\n$url",
|
||||
confirmButton: "Öffnen",
|
||||
title: 'Link öffnen',
|
||||
content: 'Möchtest du den folgenden Link öffnen?\n$url',
|
||||
confirmButton: 'Öffnen',
|
||||
onConfirm: () => launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user