mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
Renamed EquipmentProfileData
->EquipmentProfile
This commit is contained in:
parent
cb675e43e1
commit
8595aae00f
5 changed files with 10 additions and 10 deletions
|
@ -6,7 +6,7 @@ sealed class MeteringEvent {
|
|||
}
|
||||
|
||||
class EquipmentProfileChangedEvent extends MeteringEvent {
|
||||
final EquipmentProfileData equipmentProfileData;
|
||||
final EquipmentProfile equipmentProfileData;
|
||||
|
||||
const EquipmentProfileChangedEvent(this.equipmentProfileData);
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@ import 'package:lightmeter/screens/settings/components/metering/components/equip
|
|||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||
|
||||
class EquipmentProfileContainer extends StatefulWidget {
|
||||
final EquipmentProfileData data;
|
||||
final ValueChanged<EquipmentProfileData> onUpdate;
|
||||
final EquipmentProfile data;
|
||||
final ValueChanged<EquipmentProfile> onUpdate;
|
||||
final VoidCallback onDelete;
|
||||
final VoidCallback onExpand;
|
||||
|
||||
|
@ -27,7 +27,7 @@ class EquipmentProfileContainer extends StatefulWidget {
|
|||
|
||||
class EquipmentProfileContainerState extends State<EquipmentProfileContainer>
|
||||
with TickerProviderStateMixin {
|
||||
late EquipmentProfileData _equipmentData = EquipmentProfileData(
|
||||
late EquipmentProfile _equipmentData = EquipmentProfile(
|
||||
id: widget.data.id,
|
||||
name: widget.data.name,
|
||||
apertureValues: widget.data.apertureValues,
|
||||
|
@ -45,7 +45,7 @@ class EquipmentProfileContainerState extends State<EquipmentProfileContainer>
|
|||
@override
|
||||
void didUpdateWidget(EquipmentProfileContainer oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
_equipmentData = EquipmentProfileData(
|
||||
_equipmentData = EquipmentProfile(
|
||||
id: widget.data.id,
|
||||
name: widget.data.name,
|
||||
apertureValues: widget.data.apertureValues,
|
||||
|
@ -196,7 +196,7 @@ class _AnimatedArrowButton extends AnimatedWidget {
|
|||
}
|
||||
|
||||
class _AnimatedEquipmentListTiles extends AnimatedWidget {
|
||||
final EquipmentProfileData equipmentData;
|
||||
final EquipmentProfile equipmentData;
|
||||
final ValueChanged<List<ApertureValue>> onApertureValuesSelected;
|
||||
final ValueChanged<List<IsoValue>> onIsoValuesSelecred;
|
||||
final ValueChanged<List<NdValue>> onNdValuesSelected;
|
||||
|
|
|
@ -17,7 +17,7 @@ class EquipmentProfilesListTile extends StatelessWidget {
|
|||
onTap: () {
|
||||
if (context.get<Environment>().buildType == BuildType.dev ||
|
||||
IAPProducts.isPurchased(context, IAPProductType.paidFeatures)) {
|
||||
Navigator.of(context).push<EquipmentProfileData>(
|
||||
Navigator.of(context).push<EquipmentProfile>(
|
||||
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()),
|
||||
);
|
||||
} else {
|
||||
|
|
|
@ -495,7 +495,7 @@ void main() {
|
|||
group(
|
||||
'`EquipmentProfileChangedEvent`',
|
||||
() {
|
||||
final reducedProfile = EquipmentProfileData(
|
||||
final reducedProfile = EquipmentProfile(
|
||||
id: '0',
|
||||
name: 'Reduced',
|
||||
apertureValues: ApertureValue.values,
|
||||
|
|
|
@ -5,7 +5,7 @@ import 'package:lightmeter/screens/metering/screen_metering.dart';
|
|||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||
|
||||
void main() {
|
||||
const defaultEquipmentProfile = EquipmentProfileData(
|
||||
const defaultEquipmentProfile = EquipmentProfile(
|
||||
id: "",
|
||||
name: 'Default',
|
||||
apertureValues: ApertureValue.values,
|
||||
|
@ -334,7 +334,7 @@ void main() {
|
|||
});
|
||||
|
||||
group('Reduced equipment profile', () {
|
||||
final equipmentProfile = EquipmentProfileData(
|
||||
final equipmentProfile = EquipmentProfile(
|
||||
id: "1",
|
||||
name: 'Test1',
|
||||
apertureValues: ApertureValue.values.sublist(4),
|
||||
|
|
Loading…
Reference in a new issue