From fc304edc313169ed98db767f4336b9649cc94d37 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 16 Jul 2023 18:18:18 +0200 Subject: [PATCH] fix: All license dialogs should look the same --- lib/src/ui/pages/about.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/src/ui/pages/about.dart b/lib/src/ui/pages/about.dart index c5154c1..1753261 100644 --- a/lib/src/ui/pages/about.dart +++ b/lib/src/ui/pages/about.dart @@ -64,11 +64,16 @@ class AboutPage extends StatelessWidget { await showDialog( context: context, builder: (context) { - return SimpleDialog( - children: [ - Padding( - padding: const EdgeInsets.all(16), - child: Text(licenseText), + return AlertDialog( + content: SingleChildScrollView( + child: Text(licenseText), + ), + actions: [ + TextButton( + onPressed: () { + Navigator.of(context).pop(); + }, + child: Text(t.about.close), ), ], );