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

22 lines
508 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({Key? key, required this.onPress}) : super(key: key);
final VoidCallback onPress;
@override
Widget build(BuildContext context) {
return OutlinedButton(
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
],
),
);
}
}