m3_lightmeter/lib/data/permissions_service.dart
2023-05-30 17:34:37 +02:00

9 lines
302 B
Dart

import 'package:permission_handler/permission_handler.dart';
class PermissionsService {
const PermissionsService();
Future<PermissionStatus> checkCameraPermission() async => Permission.camera.status;
Future<PermissionStatus> requestCameraPermission() async => Permission.camera.request();
}