════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown while looking for parent data.:
Incorrect use of ParentDataWidget.
The following ParentDataWidgets are providing parent data to the same RenderObject:
Expanded(flex: 1) (typically placed directly inside a Flex widget)
Expanded(flex: 1) (typically placed directly inside a Flex widget)
However, a RenderObject can only receive parent data from at most one ParentDataWidget.
Usually, this indicates that at least one of the offending ParentDataWidgets listed above is not placed directly inside a compatible ancestor widget.
The ownership chain for the RenderObject that received the parent data was:
Row ← Expanded ← Expanded ← Column ← _BodyBuilder ← MediaQuery ← LayoutId-[<_ScaffoldSlot.body>] ← CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ← ⋯
When the exception was thrown, this was the stack:
...
════════════════════════════════════════════════════════════════════════════════════════════════════
Reloaded 0 of 502 libraries in 601ms.
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
Each child must be laid out exactly once.
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ The following assertion was thrown while looking for parent data.: Incorrect use of ParentDataWidget.
The following ParentDataWidgets are providing parent data to the same RenderObject:
Usually, this indicates that at least one of the offending ParentDataWidgets listed above is not placed directly inside a compatible ancestor widget.
The ownership chain for the RenderObject that received the parent data was: Row ← Expanded ← Expanded ← Column ← _BodyBuilder ← MediaQuery ← LayoutId-[<_ScaffoldSlot.body>] ← CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ← ⋯ When the exception was thrown, this was the stack:
0 RenderObjectElement._findAncestorParentDataElement. (package:flutter/src/widgets/framework.dart:5341:11)
1 RenderObjectElement._findAncestorParentDataElement (package:flutter/src/widgets/framework.dart:5355:6)
2 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5680:61)
3 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5376:5)
4 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5943:11)
... ════════════════════════════════════════════════════════════════════════════════════════════════════ Reloaded 0 of 502 libraries in 601ms.
════════ Exception caught by rendering library ═════════════════════════════════════════════════════ The following assertion was thrown during performLayout(): Each child must be laid out exactly once.