mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
cdf7372913
* wip * `MeteringScreenLayout = InheritedModelBase<MeteringScreenLayoutFeature, bool>` * removed `Provider` from providers folder * wip * Update pubspec.yaml * `context.get<MeteringInteractor>()` * `context.get<Environment>()` * `context.get<SettingsInteractor>()` * typo * fixed `MeteringScreenLayout` * fixed redundant vibrations
9 lines
300 B
Dart
9 lines
300 B
Dart
import 'package:permission_handler/permission_handler.dart';
|
|
|
|
class PermissionsService {
|
|
const PermissionsService();
|
|
|
|
Future<PermissionStatus> checkCameraPermission() async => Permission.camera.status;
|
|
|
|
Future<PermissionStatus> requestCameraPermission() async => Permission.camera.request();
|
|
}
|