From bf1743cb8f5f8442ead8bfc262f9d4fdc837337d Mon Sep 17 00:00:00 2001 From: ashilkn Date: Mon, 5 Sep 2022 15:40:59 +0530 Subject: [PATCH] minor bug fix --- lib/ui/settings/security_section_widget.dart | 1 + lib/utils/dialog_util.dart | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ui/settings/security_section_widget.dart b/lib/ui/settings/security_section_widget.dart index ba0b64720..3c9b5fd71 100644 --- a/lib/ui/settings/security_section_widget.dart +++ b/lib/ui/settings/security_section_widget.dart @@ -140,6 +140,7 @@ class _SecuritySectionWidgetState extends State { } else { showErrorDialog( context, + "", "To enable the ente lockscreen, please setup the device passcode or screen lock in the system settings.", ); } diff --git a/lib/utils/dialog_util.dart b/lib/utils/dialog_util.dart index 4d1e13f0f..e51c59410 100644 --- a/lib/utils/dialog_util.dart +++ b/lib/utils/dialog_util.dart @@ -26,9 +26,9 @@ ProgressDialog createProgressDialog(BuildContext context, String message) { Future showErrorDialog( BuildContext context, - String content, [ - String title = '', -]) { + String title, + String content, +) { final AlertDialog alert = AlertDialog( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), title: title.isEmpty