diff --git a/lib/screens/metering/screen_metering.dart b/lib/screens/metering/screen_metering.dart index 4fb1e85..e4b3b91 100644 --- a/lib/screens/metering/screen_metering.dart +++ b/lib/screens/metering/screen_metering.dart @@ -77,11 +77,21 @@ class _InheritedListeners extends StatelessWidget { context.read().add(EquipmentProfileChangedEvent(value)); }, child: InheritedModelAspectListener( - aspect: MeteringScreenLayoutFeature.filmPicker, + aspect: MeteringScreenLayoutFeature.equipmentProfiles, onDidChangeDependencies: (value) { - if (!value) context.read().add(const FilmChangedEvent(Film.other())); + if (!value) { + EquipmentProfileProvider.of(context).setProfile(context.get().first); + } }, - child: child, + child: InheritedModelAspectListener( + aspect: MeteringScreenLayoutFeature.filmPicker, + onDidChangeDependencies: (value) { + if (!value) { + context.read().add(const FilmChangedEvent(Film.other())); + } + }, + child: child, + ), ), ); }