mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +00:00
4bb080a144
* added equipment profiles to layout config * calculate layout height based on `MeteringScreenLayoutFeature` * Update cd_dev.yml * Fixed equipment profile tile padding * import * `webfactory/ssh-agent` * Update pubspec.yaml * fixed `MeteringScreenLayoutConfigJson` tests * fixed `UserPreferencesService` tests * reset selected equipment profile when layout feature is disabled * `IAPProductType.equipment` -> `IAPProductType.paidFeatures` * updated packages versions * Update shared_prefs_service.dart * Fixed & tested exposure pairs list builder * typo * typo * added iap repo stub * Renamed `EquipmentProfileData` ->`EquipmentProfile` * Moved `EquipmentProfileProvider` to iap repo * Update README.md * Fixed `EquipmentProfileListener` * Improved `EquipmentProfilesListTile` statuses visualization * Update README.md * Update ci.yml * Post-merge fixes * typo * Added workflow checks * more sophisticated iap icons * Include IAP by default * added loader for `IAPProductStatus.pending` * typo * Added equipment profiles list placeholder * typo * separated `IconPlaceholder` * improved `buildExposureValues` testing * cleanup
23 lines
645 B
Dart
23 lines
645 B
Dart
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
|
|
|
class ExposurePair {
|
|
final ApertureValue aperture;
|
|
final ShutterSpeedValue shutterSpeed;
|
|
|
|
const ExposurePair(this.aperture, this.shutterSpeed);
|
|
|
|
@override
|
|
String toString() => '$aperture - $shutterSpeed';
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(this, other)) return true;
|
|
if (other.runtimeType != runtimeType) return false;
|
|
return other is ExposurePair &&
|
|
other.aperture == aperture &&
|
|
other.shutterSpeed == shutterSpeed;
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(aperture, shutterSpeed, runtimeType);
|
|
}
|