mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-25 23:50:40 +00:00
73d0c32323
* implemented `MockCameraContainerBloc` to stub camera on simulator * hide pro features from metering screen * disable pro features in settings * use closed child background color in `AnimatedDialog` * adjust `AnimatedDialogPicker` to items count * close `AnimatedDialog` through context * cleanup * fixed `ReadingValueContainer` text color * removed legacy translations * fixed tests * fixed `AnimatedDialog` scaling * added `evFromImage` test * added no EXIF test to `evFromImage`
12 lines
516 B
Dart
12 lines
516 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lightmeter/data/models/metering_screen_layout_config.dart';
|
|
import 'package:lightmeter/providers/user_preferences_provider.dart';
|
|
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
|
|
|
|
extension BuildContextUtils on BuildContext {
|
|
bool meteringFeature(MeteringScreenLayoutFeature feature) {
|
|
return UserPreferencesProvider.meteringScreenFeatureOf(this, feature);
|
|
}
|
|
|
|
bool get isPro => IAPProducts.isPurchased(this, IAPProductType.paidFeatures);
|
|
}
|