Skip to content

Commit

Permalink
Merge pull request #71 from limitedeternity/main
Browse files Browse the repository at this point in the history
Update popup_dialog.dart
  • Loading branch information
MahanRahmati authored May 18, 2022
2 parents 1eb2c95 + 5841a10 commit 6e9ba19
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions lib/src/dialogs/popup_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,18 @@ class _ArnaPopupDialog extends StatelessWidget {
child: ClipRRect(
borderRadius: Styles.listBorderRadius,
child: ArnaScaffold(
headerBarLeading: headerBarLeading,
headerBarLeading: Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
ArnaTextButton(
label: MaterialLocalizations.of(context).backButtonTooltip,
onPressed: Navigator.of(context).pop,
),
if (headerBarLeading != null) headerBarLeading!,
],
),
title: title,
actions: <Widget>[
if (actions != null) ...actions!,
ArnaBorderlessButton(
icon: Icons.close,
onPressed: Navigator.of(context).pop,
tooltipMessage: MaterialLocalizations.of(context).closeButtonTooltip,
)
],
actions: actions,
body: body,
isDialog: true,
),
Expand Down Expand Up @@ -185,7 +187,7 @@ class _ArnaPopupPage extends StatelessWidget {
children: <Widget>[
ArnaIconButton(
icon: Icons.arrow_back_outlined,
onPressed: () => Navigator.pop(context),
onPressed: Navigator.of(context).pop,
tooltipMessage: MaterialLocalizations.of(context).backButtonTooltip,
semanticLabel: MaterialLocalizations.of(context).backButtonTooltip,
),
Expand Down

0 comments on commit 6e9ba19

Please sign in to comment.