diff --git a/lib/screens/settings/components/metering/components/equipment_profiles/components/equipment_profile_screen/screen_equipment_profile.dart b/lib/screens/settings/components/metering/components/equipment_profiles/components/equipment_profile_screen/screen_equipment_profile.dart index a2ba21e..a062f62 100644 --- a/lib/screens/settings/components/metering/components/equipment_profiles/components/equipment_profile_screen/screen_equipment_profile.dart +++ b/lib/screens/settings/components/metering/components/equipment_profiles/components/equipment_profile_screen/screen_equipment_profile.dart @@ -23,11 +23,9 @@ class _EquipmentProfilesScreenState extends State { @override void initState() { super.initState(); - profileContainersKeys = List.filled( - EquipmentProfiles.of(context, listen: false).length, - GlobalKey(), - growable: true, - ); + profileContainersKeys = EquipmentProfiles.of(context, listen: false) + .map((e) => GlobalKey(debugLabel: e.id)) + .toList(); } @override