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

22 lines
502 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({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()),
Icon(Icons.close),
],
),
);
}
}