mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 01:43:13 +00:00
20 lines
490 B
Dart
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),
|
|
],
|
|
),
|
|
);
|
|
}
|