Skip to content

Commit

Permalink
Update ArnaPopupDialog and ArnaDatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
MahanRahmati committed May 18, 2022
1 parent 49c9030 commit 1eb2c95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Update README
- Update ArnaBaseWidget
- Update ArnaPopupDialog
- Update ArnaDatePicker

## 0.4.7

Expand Down
7 changes: 4 additions & 3 deletions lib/src/dialogs/popup_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ class _ArnaPopupDialog extends StatelessWidget {
title: title,
actions: <Widget>[
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,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/pickers/date_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ class _ArnaDatePickerDialogState extends State<ArnaDatePickerDialog> with Restor
style: ArnaTheme.of(context).textTheme.title,
),
actions: <Widget>[
ArnaIconButton(
ArnaBorderlessButton(
icon: Icons.close,
onPressed: () => Navigator.pop(context),
onPressed: Navigator.of(context).pop,
tooltipMessage: widget.cancelText ?? MaterialLocalizations.of(context).cancelButtonLabel,
)
],
Expand Down

0 comments on commit 1eb2c95

Please sign in to comment.