From 979be989acee0b7279e49d675bc9b9ba79585fec Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 30 Apr 2021 18:37:03 +0200 Subject: [PATCH] Update about dialog --- lib/utils/ui_utils.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/utils/ui_utils.dart b/lib/utils/ui_utils.dart index ad5a81d..594621a 100644 --- a/lib/utils/ui_utils.dart +++ b/lib/utils/ui_utils.dart @@ -1,6 +1,6 @@ - import 'package:comunic/helpers/preferences_helper.dart'; import 'package:comunic/main.dart'; +import 'package:comunic/models/config.dart'; import 'package:comunic/ui/routes/full_screen_image.dart'; import 'package:comunic/ui/widgets/dialogs/auto_sized_dialog_content_widget.dart'; import 'package:comunic/ui/widgets/dialogs/cancel_dialog_button.dart'; @@ -268,10 +268,11 @@ bool isTablet(BuildContext context) => void showAboutAppDialog(BuildContext context) { showAboutDialog( context: context, - applicationName: "Comunic", + applicationName: config().appName, children: [ Text( - tr("Comunic is a free and OpenSource social network that respect your privacy."), + config().appQuickDescription ?? + tr("Comunic is a free and OpenSource social network that respect your privacy."), textAlign: TextAlign.center, ), SizedBox(