yeasin50 / space_craft

A simple Flutter Game,
BSD 4-Clause "Original" or "Old" License
9 stars 2 forks source link

Duplicate keys #41

Closed yeasin50 closed 1 year ago

yeasin50 commented 2 years ago

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building EnemyOverlay-[<'EnemyOverlay key'>]:
Duplicate keys found.

If multiple keyed nodes exist as children of another node, they must have unique keys.
Stack-[<'Enemies Stack'>](alignment: AlignmentDirectional.topStart, fit: loose) has multiple children with key [<Vector2(dX: 386.4158175820844, dY: -9.376000000000005)>].
The relevant error-causing widget was
EnemyOverlay-[<'EnemyOverlay key'>]
lib\…\on_play\on_play.screen.dart:56
When the exception was thrown, this was the stack