selfprivacy.org.app/lib/ui/components/pre_styled_buttons/close.dart
NaiJi 2ac8e4366b Linting!
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-06-06 01:40:34 +03:00

20 lines
490 B
Dart

part of 'pre_styled_buttons.dart';
class _CloseButton extends StatelessWidget {
const _CloseButton({required this.onPress});
final VoidCallback onPress;
@override
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),
],
),
);
}