mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
fixed duplicate GlobalKeys
This commit is contained in:
parent
eb78b0b80b
commit
7d535e8c0c
1 changed files with 3 additions and 5 deletions
|
@ -23,11 +23,9 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> {
|
|||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
profileContainersKeys = List.filled(
|
||||
EquipmentProfiles.of(context, listen: false).length,
|
||||
GlobalKey<EquipmentProfileContainerState>(),
|
||||
growable: true,
|
||||
);
|
||||
profileContainersKeys = EquipmentProfiles.of(context, listen: false)
|
||||
.map((e) => GlobalKey<EquipmentProfileContainerState>(debugLabel: e.id))
|
||||
.toList();
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue