mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
21 lines
679 B
Dart
21 lines
679 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lightmeter/data/models/feature.dart';
|
|
import 'package:lightmeter/providers/services_provider.dart';
|
|
|
|
class RemoteConfig extends InheritedWidget {
|
|
const RemoteConfig({
|
|
super.key,
|
|
required super.child,
|
|
});
|
|
|
|
static bool isEnabled(BuildContext context, Feature feature) {
|
|
return ServicesProvider.of(context).remoteConfigService.isEnabled(feature);
|
|
}
|
|
|
|
@override
|
|
bool updateShouldNotify(RemoteConfig oldWidget) => true;
|
|
}
|
|
|
|
const a = """
|
|
\u2022 Equipment profiles containing filters for aperture, shutter speed, and more\n\u2022 List of films with compensation for what's known as reciprocity failure
|
|
""";
|