m3_lightmeter/lib/data/permissions_service.dart
2022-11-27 23:22:56 +03:00

7 lines
275 B
Dart

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