mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
15 lines
380 B
Dart
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,
|
|
);
|
|
}
|
|
}
|