mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-04 21:30:39 +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();
|
|
}
|