Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect use of ParentDataWidget. #52

Open
salahamassi opened this issue Dec 10, 2021 · 0 comments
Open

Incorrect use of ParentDataWidget. #52

salahamassi opened this issue Dec 10, 2021 · 0 comments

Comments

@salahamassi
Copy link
Contributor

This Exception show after launching the app on mobile ui

======== Exception caught by widgets library =======================================================
The following assertion was thrown while applying parent data.:
Incorrect use of ParentDataWidget.

The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a RenderObject, which has been set up to accept ParentData of incompatible type ParentData.

Usually, this means that the Expanded widget has the wrong ancestor RenderObjectWidget. Typically, Expanded widgets are placed directly inside Flex widgets.
The offending Expanded is currently placed inside a RepaintBoundary widget.

The ownership chain for the RenderObject that received the incompatible parent data was:
  Center ← Expanded ← RepaintBoundary ← IndexedSemantics ← NotificationListener<KeepAliveNotification> ← KeepAlive ← AutomaticKeepAlive ← KeyedSubtree ← SliverList ← Viewport ← ⋯
When the exception was thrown, this was the stack: 
#0      RenderObjectElement._updateParentData.<anonymous closure> (package:flutter/src/widgets/framework.dart:5835:11)
#1      RenderObjectElement._updateParentData (package:flutter/src/widgets/framework.dart:5851:6)
#2      RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5873:7)
#3      RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5544:5)
#4      SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6194:11)
...     Normal element mounting (7 frames)
#11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3673:14)
#12     Element.updateChild (package:flutter/src/widgets/framework.dart:3422:20)
#13     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#14     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#15     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#16     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#18     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#19     StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#20     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#21     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#22     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#23     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#24     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#25     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#26     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#27     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#28     StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#29     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#30     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#31     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#32     StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#33     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#34     SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1242:37)
#35     SliverMultiBoxAdaptorElement.performRebuild.processElement (package:flutter/src/widgets/sliver.dart:1147:35)
#36     Iterable.forEach (dart:core/iterable.dart:279:35)
#37     SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:1191:24)
#38     SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:1125:7)
#39     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#40     RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#41     MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#42     _ViewportElement.update (package:flutter/src/widgets/viewport.dart:228:11)
#43     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#44     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#45     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#46     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#47     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#48     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#49     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#50     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#51     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#52     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#53     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#54     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#55     StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#56     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#57     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#58     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#59     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#60     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#61     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#62     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#63     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#64     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#65     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#66     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#67     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#68     StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#69     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#70     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#71     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#72     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#73     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#74     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#75     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#76     StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#77     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#78     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#79     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#80     StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#81     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#82     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#83     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#84     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#85     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#86     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#87     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#88     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#89     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#90     RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5700:32)
#91     MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6356:17)
#92     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#93     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#94     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#95     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#96     StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#97     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#98     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#99     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#100    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#101    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#102    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#103    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#104    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#105    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#106    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#107    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#108    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#109    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#110    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#111    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#112    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#113    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6202:14)
#114    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#115    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#116    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#117    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#118    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#119    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#120    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#121    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#122    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#123    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#124    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#125    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#126    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#127    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#128    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#129    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#130    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#131    StatelessElement.update (package:flutter/src/widgets/framework.dart:4746:5)
#132    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#133    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#134    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#135    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#136    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#137    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#138    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#139    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#140    ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#141    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#142    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#143    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#144    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#145    StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#146    Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#147    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#148    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#149    Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#150    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
#151    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#152    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#153    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
(elided 3 frames from dart:async)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant