mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 05:03:44 +02:00
feat: add close button for pause selection dialog
This commit is contained in:
parent
db6d343fb4
commit
986d6a8d3f
1 changed files with 61 additions and 48 deletions
|
@ -296,7 +296,9 @@ class _AvailabilityBreakSelectionDialogState
|
|||
? translations.pauseDialogDescriptionTemplate
|
||||
: translations.pauseDialogDescriptionAvailability;
|
||||
|
||||
return Container(
|
||||
return Stack(
|
||||
children: [
|
||||
Container(
|
||||
margin: EdgeInsets.symmetric(
|
||||
horizontal: spacing.sidePadding,
|
||||
),
|
||||
|
@ -349,6 +351,17 @@ class _AvailabilityBreakSelectionDialogState
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
top: 0,
|
||||
child: IconButton(
|
||||
padding: const EdgeInsets.all(16),
|
||||
icon: const Icon(Icons.close),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue