selfprivacy.org.app/lib/ui/components/pre_styled_buttons/close.dart
2022-05-24 21:55:39 +03:00

22 lines
508 B
Dart

part of 'pre_styled_buttons.dart';
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()),
const Icon(Icons.close),
],
),
);
}
}