Repository navigation
Nesting a ListView in an AlertDialog results in intrinsic dimensions error #18108
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
I'm trying to display alert dialog with listview inside
But I'm getting following exception
Logs
2018-06-01 11:04:00.028 29259-29301/com.hatak.migawka I/flutter: ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
2018-06-01 11:04:00.042 29259-29301/com.hatak.migawka I/flutter: The following assertion was thrown during performLayout():
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: RenderViewport does not support returning intrinsic dimensions.
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: Calculating the intrinsic dimensions would require instantiating every child of the viewport, which
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: defeats the point of viewports being lazy.
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: If you are merely trying to shrink-wrap the viewport in the main axis direction, consider a
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: RenderShrinkWrappingViewport render object (ShrinkWrappingViewport widget), which achieves that
2018-06-01 11:04:00.043 29259-29301/com.hatak.migawka I/flutter: effect without implementing the intrinsic dimension API.
2018-06-01 11:04:00.044 29259-29301/com.hatak.migawka I/flutter: When the exception was thrown, this was the stack:
2018-06-01 11:04:00.049 29259-29301/com.hatak.migawka I/flutter: #0 RenderViewportBase.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:230:9)
2018-06-01 11:04:00.049 29259-29301/com.hatak.migawka I/flutter: #1 RenderViewportBase.debugThrowIfNotCheckingIntrinsics (package:flutter/src/rendering/viewport.dart:240:6)
2018-06-01 11:04:00.049 29259-29301/com.hatak.migawka I/flutter: #2 RenderViewportBase.computeMaxIntrinsicWidth (package:flutter/src/rendering/viewport.dart:252:12)
2018-06-01 11:04:00.049 29259-29301/com.hatak.migawka I/flutter: #3 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.049 29259-29301/com.hatak.migawka I/flutter: #4 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #5 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #6 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #8 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #9 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #10 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.050 29259-29301/com.hatak.migawka I/flutter: #11 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.051 29259-29301/com.hatak.migawka I/flutter: #12 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.051 29259-29301/com.hatak.migawka I/flutter: #13 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.051 29259-29301/com.hatak.migawka I/flutter: #14 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.051 29259-29301/com.hatak.migawka I/flutter: #15 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.051 29259-29301/com.hatak.migawka I/flutter: #16 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #17 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #18 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #19 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #20 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #21 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #22 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.052 29259-29301/com.hatak.migawka I/flutter: #23 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.053 29259-29301/com.hatak.migawka I/flutter: #24 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.053 29259-29301/com.hatak.migawka I/flutter: #25 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.053 29259-29301/com.hatak.migawka I/flutter: #26 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.053 29259-29301/com.hatak.migawka I/flutter: #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.053 29259-29301/com.hatak.migawka I/flutter: #28 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.054 29259-29301/com.hatak.migawka I/flutter: #29 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.054 29259-29301/com.hatak.migawka I/flutter: #30 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.054 29259-29301/com.hatak.migawka I/flutter: #31 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.054 29259-29301/com.hatak.migawka I/flutter: #32 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.054 29259-29301/com.hatak.migawka I/flutter: #33 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.055 29259-29301/com.hatak.migawka I/flutter: #34 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.055 29259-29301/com.hatak.migawka I/flutter: #35 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.055 29259-29301/com.hatak.migawka I/flutter: #36 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.055 29259-29301/com.hatak.migawka I/flutter: #37 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.056 29259-29301/com.hatak.migawka I/flutter: #38 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.056 29259-29301/com.hatak.migawka I/flutter: #39 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.056 29259-29301/com.hatak.migawka I/flutter: #40 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #41 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #42 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #43 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #44 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #45 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #46 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #47 RenderPadding.computeMaxIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:163:20)
2018-06-01 11:04:00.057 29259-29301/com.hatak.migawka I/flutter: #48 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #49 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #50 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #51 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #52 RenderFlex.computeMaxIntrinsicWidth.<anonymous closure> (package:flutter/src/rendering/flex.dart:575:60)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #53 RenderFlex._getIntrinsicSize (package:flutter/src/rendering/flex.dart:552:58)
2018-06-01 11:04:00.058 29259-29301/com.hatak.migawka I/flutter: #54 RenderFlex.computeMaxIntrinsicWidth (package:flutter/src/rendering/flex.dart:572:12)
2018-06-01 11:04:00.059 29259-29301/com.hatak.migawka I/flutter: #55 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1063:23)
2018-06-01 11:04:00.059 29259-29301/com.hatak.migawka I/flutter: #56 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
2018-06-01 11:04:00.059 29259-29301/com.hatak.migawka I/flutter: #57 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1061:41)
2018-06-01 11:04:00.059 29259-29301/com.hatak.migawka I/flutter: #58 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1245:12)
2018-06-01 11:04:00.059 29259-29301/com.hatak.migawka I/flutter: #59 RenderIntrinsicWidth.performLayout (package:flutter/src/rendering/proxy_box.dart:618:36)
2018-06-01 11:04:00.060 29259-29301/com.hatak.migawka I/flutter: #60 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.060 29259-29301/com.hatak.migawka I/flutter: #61 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.060 29259-29301/com.hatak.migawka I/flutter: #62 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.060 29259-29301/com.hatak.migawka I/flutter: #63 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #64 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #65 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #66 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1143:11)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #67 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #68 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #69 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #70 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381:13)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #71 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #72 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #73 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #74 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #75 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.061 29259-29301/com.hatak.migawka I/flutter: #76 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #77 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #78 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #79 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #80 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #81 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #82 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.062 29259-29301/com.hatak.migawka I/flutter: #83 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #84 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #85 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #86 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #87 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #88 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #89 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:2809:13)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #90 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #91 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:520:15)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #92 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #93 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709:18)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #94 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
2018-06-01 11:04:00.063 29259-29301/com.hatak.migawka I/flutter: #95 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #96 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #97 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #98 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #99 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #100 _invoke (dart:ui/hooks.dart:120:13)
2018-06-01 11:04:00.064 29259-29301/com.hatak.migawka I/flutter: #101 _drawFrame (dart:ui/hooks.dart:109:3)
2018-06-01 11:04:00.080 29259-29301/com.hatak.migawka I/flutter: The following RenderObject was being processed when the exception was fired:
2018-06-01 11:04:00.080 29259-29301/com.hatak.migawka I/flutter: RenderIntrinsicWidth#7ad68 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:00.080 29259-29301/com.hatak.migawka I/flutter: creator: IntrinsicWidth ← DefaultTextStyle ← AnimatedDefaultTextStyle ←
2018-06-01 11:04:01.089 29259-29301/com.hatak.migawka I/flutter: _InkFeatures-[GlobalKey#30891 ink renderer] ← NotificationListener<LayoutChangedNotification> ←
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: CustomPaint ← _ShapeBorderPaint ← PhysicalShape ← _MaterialInterior ← Material ← ConstrainedBox ←
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: Center ← ⋯
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: parentData: <none> (can use size)
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: constraints: BoxConstraints(280.0<=w<=331.4, 0.0<=h<=611.4)
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: size: MISSING
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: stepWidth: null
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: stepHeight: null
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: This RenderObject had the following descendants (showing up to depth 5):
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderFlex#004f4 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderPadding#465a7 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderSemanticsAnnotations#faae7 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderParagraph#45dc4 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderPadding#457b7 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderRepaintBoundary#d7502 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.090 29259-29301/com.hatak.migawka I/flutter: RenderCustomPaint#02004 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: RenderRepaintBoundary#547e5 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: RenderPadding#1d029 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: RenderFlex#87a32 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: RenderPadding#db7c9 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: RenderSemanticsAnnotations#cd010 NEEDS-LAYOUT NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: RenderBox was not laid out: RenderIntrinsicWidth#7ad68 relayoutBoundary=up5 NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: RenderBox was not laid out: _RenderInkFeatures#a362b relayoutBoundary=up4 NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#579f5 relayoutBoundary=up3 NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#4557f relayoutBoundary=up2 NEEDS-PAINT
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: 'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 310 pos 12: 'child.hasSize': is not true.
2018-06-01 11:04:01.091 29259-29301/com.hatak.migawka I/flutter: Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#4557f relayoutBoundary=up2
2018-06-01 11:04:03.173 1557-1611/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 16324115 , only wrote 16171920
If I remove listview from dialog it works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version


Activity
chinmaygarde commentedon Jun 2, 2018
cc @Hixie @HansMuller
HansMuller commentedon Jun 4, 2018
I'll try and sort this out if you'll provide an example of the failure that's copy and pasteable.
It looks as the the Dialog wants to shrink-wrap its ListView.builder() child, but the child doesn't have an intrinsic size. In other words, if your dialog builder were to return
SizedBox(height: ..., child: dialog)I think you could work-around the problem.hatched-MaciejPrzybylski commentedon Jun 5, 2018
Sure here you have, I haven't tried workaround however I think it should work as
wrap_contentfor android without need for providing specific size.HansMuller commentedon Jun 5, 2018
ListView.builder provides a shrinkWrap parameter that does what you want.
Here's a version of your example that does the right thing: https://gist.github.com/HansMuller/f35aeae7ac44225d8b831f5e4749c0e1
hatched-MaciejPrzybylski commentedon Jun 5, 2018
@HansMuller I've added param but I still see the error, then I've copy pasted your version and it gives me same error even with fresh installation.
Tested on android emulator and real device, both running 8.1 also iphoneX simulator gives result
HansMuller commentedon Jun 5, 2018
That's pretty strange. I'm using an old Nexus 5, running 5.1.1 with the current "tip of tree" Flutter.
However: I was able to reproduce the problem with a PIxel running 8.1. Looking into it now.
HansMuller commentedon Jun 5, 2018
It turns out that the error you were running into was due to the IntrinsicWidth widget added by AlertDialog.
The easiest way to avoid the problem is to create your own Dialog class that doesn't wrap its content with an IntrisicWidth widget.
I just made a local copy of AlertDialog: https://gist.github.com/HansMuller/a494b6b0ec7b7a2cf42daea47900d7a9
This certainly is a confusing failure mode. The AlertDialog docs could warn about this case. The AlertDialog class could make its own shrinkToFit IntrinsicWidth widget optional.
hatched-MaciejPrzybylski commentedon Jun 6, 2018
Thanks for your help, I hope dialog widget could be improved in a way you described it. For now I just workaround issue by nesting content of dialog into scroll view, however I will try custom dialog in the future if it will not be solved by the framework.
I have only one question why it was working on your Nexus with older android?
HansMuller commentedon Jun 6, 2018
I'm not exactly sure why the "RenderViewport does not support returning intrinsic dimensions" error doesn't occur on the Nexus 5. I assume it has something to do with the difference in screen widths; will have to look more closely to sort that out.
sir-boformer commentedon Dec 31, 2018
Ad an addition, because @zoechi closed #19613 as duplicate. This also affects the shrink-wrapping viewport:
35 remaining items
maheshj01 commentedon Jan 14, 2023
Reproducible on stable 3.3 and master 3.7
code samplev
logs
github-actions commentedon Apr 6, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.