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