m3_lightmeter/lib/data/permissions_service.dart

8 lines
269 B
Dart
Raw Normal View History

2022-11-27 20:22:56 +00:00
import 'package:permission_handler/permission_handler.dart';
class PermissionsService {
Future<PermissionStatus> checkCameraPermission() async => Permission.camera.status;
2022-11-27 20:22:56 +00:00
Future<PermissionStatus> requestCameraPermission() async => Permission.camera.request();
}