selfprivacy.org.app/lib/ui/components/pre_styled_buttons/close.dart

20 lines
490 B
Dart
Raw Normal View History

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 {
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(
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
}