m3_lightmeter/lib/screens/shared/close_button/widget_button_close.dart
2024-04-30 16:32:01 +02:00

15 lines
380 B
Dart

import 'package:flutter/material.dart';
import 'package:lightmeter/generated/l10n.dart';
class CloseButton extends StatelessWidget {
const CloseButton({super.key});
@override
Widget build(BuildContext context) {
return IconButton(
onPressed: Navigator.of(context).pop,
icon: const Icon(Icons.close),
tooltip: S.of(context).tooltipClose,
);
}
}