mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-24 22:11:51 +00:00
22 lines
502 B
Dart
22 lines
502 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()),
|
|
Icon(Icons.close),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|