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