mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
7 lines
275 B
Dart
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();
|
|
}
|