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
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
profileContainersKeys = List.filled(
|
profileContainersKeys = EquipmentProfiles.of(context, listen: false)
|
||||||
EquipmentProfiles.of(context, listen: false).length,
|
.map((e) => GlobalKey<EquipmentProfileContainerState>(debugLabel: e.id))
|
||||||
GlobalKey<EquipmentProfileContainerState>(),
|
.toList();
|
||||||
growable: true,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue