From 1eb2c9537d15ab836a1c2cdcf27e54d7f5380795 Mon Sep 17 00:00:00 2001 From: MahanRahmati Date: Wed, 18 May 2022 16:08:44 +0430 Subject: [PATCH] Update ArnaPopupDialog and ArnaDatePicker --- CHANGELOG.md | 2 ++ lib/src/dialogs/popup_dialog.dart | 7 ++++--- lib/src/pickers/date_picker.dart | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 156b0621..dc166ed7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ - Update README - Update ArnaBaseWidget +- Update ArnaPopupDialog +- Update ArnaDatePicker ## 0.4.7 diff --git a/lib/src/dialogs/popup_dialog.dart b/lib/src/dialogs/popup_dialog.dart index e525ae42..f9ca0d7b 100644 --- a/lib/src/dialogs/popup_dialog.dart +++ b/lib/src/dialogs/popup_dialog.dart @@ -91,10 +91,11 @@ class _ArnaPopupDialog extends StatelessWidget { title: title, actions: [ if (actions != null) ...actions!, - ArnaTextButton( - label: 'Close', + ArnaBorderlessButton( + icon: Icons.close, onPressed: Navigator.of(context).pop, - ), + tooltipMessage: MaterialLocalizations.of(context).closeButtonTooltip, + ) ], body: body, isDialog: true, diff --git a/lib/src/pickers/date_picker.dart b/lib/src/pickers/date_picker.dart index 141a5c56..f04990ba 100644 --- a/lib/src/pickers/date_picker.dart +++ b/lib/src/pickers/date_picker.dart @@ -274,9 +274,9 @@ class _ArnaDatePickerDialogState extends State with Restor style: ArnaTheme.of(context).textTheme.title, ), actions: [ - ArnaIconButton( + ArnaBorderlessButton( icon: Icons.close, - onPressed: () => Navigator.pop(context), + onPressed: Navigator.of(context).pop, tooltipMessage: widget.cancelText ?? MaterialLocalizations.of(context).cancelButtonLabel, ) ],