mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
16 lines
380 B
Dart
16 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,
|
||
|
);
|
||
|
}
|
||
|
}
|