m3_lightmeter/lib/data/permissions_service.dart
2023-05-11 15:04:54 +02:00

7 lines
269 B
Dart

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