2021-05-26 00:53:54 +03:00
|
|
|
part of 'pre_styled_buttons.dart';
|
2021-03-26 15:38:39 +02:00
|
|
|
|
|
|
|
class _CloseButton extends StatelessWidget {
|
2022-06-06 01:40:34 +03:00
|
|
|
const _CloseButton({required this.onPress});
|
2021-03-26 15:38:39 +02:00
|
|
|
|
|
|
|
final VoidCallback onPress;
|
|
|
|
|
|
|
|
@override
|
2022-06-05 22:36:32 +03:00
|
|
|
Widget build(final BuildContext context) => OutlinedButton(
|
2022-06-06 01:40:34 +03:00
|
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
BrandText.h4('basis.close'.tr()),
|
|
|
|
const Icon(Icons.close),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
2021-03-26 15:38:39 +02:00
|
|
|
}
|