m3_lightmeter/lib/data/permissions_service.dart

8 lines
275 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 => await Permission.camera.status;
Future<PermissionStatus> requestCameraPermission() async => Permission.camera.request();
}