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

20 lines
490 B
Dart
Raw Normal View History

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 {
const _CloseButton({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(
onPressed: () => Navigator.of(context).pop(),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
BrandText.h4('basis.close'.tr()),
const Icon(Icons.close),
],
),
);
2021-03-26 13:38:39 +00:00
}