m3_lightmeter/lib/data/permissions_service.dart

10 lines
302 B
Dart
Raw Normal View History

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