Skip to content

Nesting a ListView in an AlertDialog results in intrinsic dimensions error #18108

Closed

Description

Steps to Reproduce

I'm trying to display alert dialog with listview inside

screen shot 2018-06-01 at 11 20 05

screen shot 2018-06-01 at 11 18 02

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.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jun 2, 2018
  2. chinmaygarde commented on Jun 2, 2018

    @chinmaygarde
    Contributor
  3. HansMuller commented on Jun 4, 2018

    @HansMuller
    Contributor

    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.

  4. hatched-MaciejPrzybylski commented on Jun 5, 2018

    @hatched-MaciejPrzybylski
    Author

    Sure here you have, I haven't tried workaround however I think it should work as wrap_content for android without need for providing specific size.

    import 'package:flutter/material.dart';
    
    void main() {
      runApp(new MigawkaApp(
        title: "Moja Migawka",
        theme: new ThemeData(
            brightness: Brightness.dark,
            primaryColor: Colors.amber,
            accentColor: Colors.red),
        home: new Test(),
      ));
    }
    
    class MigawkaApp extends MaterialApp {
      MigawkaApp({Key key, String title, ThemeData theme, Widget home})
          : super(key: key, title: title, theme: theme, home: home) {
      }
    }
    
    
    class Test extends StatefulWidget {
      @override
      State<StatefulWidget> createState() {
        return new TestState();
      }
    }
    
    class TestState extends State<Test>
        with TickerProviderStateMixin, WidgetsBindingObserver {
      List<String> values = ["1", "2", "3"];
    
      @override
      Widget build(BuildContext context) {
        return new Scaffold(
            appBar: new AppBar(
              title: new Center(
                  child: new Text(
                "TEST",
                style: new TextStyle(color: Colors.white),
              )),
            ),
            body: new FloatingActionButton(
                heroTag: "cloud",
                child:  new Icon(Icons.cancel)
                onPressed: () {
                  var dialog = new AlertDialog(
                    title: new Text("test"),
                    content: new ListView.builder(
                        itemBuilder: (BuildContext buildContext, int index) =>
                            new Text(values[index])),
                  );
                  showDialog(
                      context: context, builder: (BuildContext context) => dialog);
                }));
      }
    }
  5. HansMuller commented on Jun 5, 2018

    @HansMuller
    Contributor

    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

  6. hatched-MaciejPrzybylski commented on Jun 5, 2018

    @hatched-MaciejPrzybylski
    Author

    @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

  7. HansMuller commented on Jun 5, 2018

    @HansMuller
    Contributor

    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.

  8. HansMuller commented on Jun 5, 2018

    @HansMuller
    Contributor

    It turns out that the error you were running into was due to the IntrinsicWidth widget added by AlertDialog.

    RenderViewport does not support returning intrinsic dimensions.
    

    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.

  9. hatched-MaciejPrzybylski commented on Jun 6, 2018

    @hatched-MaciejPrzybylski
    Author

    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?

  10. HansMuller commented on Jun 6, 2018

    @HansMuller
    Contributor

    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.

  11. sir-boformer commented on Dec 31, 2018

    @sir-boformer
    Contributor

    Ad an addition, because @zoechi closed #19613 as duplicate. This also affects the shrink-wrapping viewport:

    I/flutter (10721): #0      RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:1544:9)
    
  12. 35 remaining items

  13. maheshj01 commented on Jan 14, 2023

    @maheshj01
    Member

    Reproducible on stable 3.3 and master 3.7

    code samplev
    import 'package:flutter/material.dart';
    
    void main() {
      runApp(MigawkaApp(
        title: "Moja Migawka",
        theme: ThemeData(
            colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.red)),
        home: const Test(),
      ));
    }
    
    class MigawkaApp extends MaterialApp {
      const MigawkaApp(
          {Key? key,
          required String title,
          required ThemeData theme,
          required Widget home})
          : super(key: key, title: title, theme: theme, home: home);
    }
    
    class Test extends StatefulWidget {
      const Test({super.key});
    
      @override
      State<StatefulWidget> createState() {
        return TestState();
      }
    }
    
    class TestState extends State<Test>
        with TickerProviderStateMixin, WidgetsBindingObserver {
      List<String> values = ["1", "2", "3"];
    
      @override
      Widget build(BuildContext context) {
        return Scaffold(
            appBar: AppBar(
              title: const Center(
                  child: Text(
                "TEST",
                style: TextStyle(color: Colors.white),
              )),
            ),
            body: FloatingActionButton(
                heroTag: "cloud",
                child: const Icon(Icons.cancel),
                onPressed: () {
                  var dialog = AlertDialog(
                    scrollable: true,
                    title: const Text("test"),
                    content: ListView.builder(
                        itemBuilder: (BuildContext buildContext, int index) =>
                            Text(values[index])),
                  );
                  showDialog(
                      context: context, builder: (BuildContext context) => dialog);
                }));
      }
    }
    logs
    Restarted application in 449ms.
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    The following assertion was thrown during performLayout():
    RenderViewport does not support returning intrinsic dimensions.
    
    Calculating the intrinsic dimensions would require instantiating every child of the viewport, which defeats the point of viewports being lazy.
    
    If you are merely trying to shrink-wrap the viewport in the main axis direction, consider a RenderShrinkWrappingViewport render object (ShrinkWrappingViewport widget), which achieves that effect without implementing the intrinsic dimension API.
    
    The relevant error-causing widget was
    AlertDialog
    When the exception was thrown, this was the stack
    #0      RenderViewportBase.debugThrowIfNotCheckingIntrinsics.<anonymous closure>
    #1      RenderViewportBase.debugThrowIfNotCheckingIntrinsics
    #2      RenderViewportBase.computeMaxIntrinsicHeight
    #3      RenderBox._computeIntrinsicDimension.<anonymous closure>
    #4      _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #5      RenderBox._computeIntrinsicDimension
    #6      RenderBox.getMaxIntrinsicHeight
    #7      RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #8      RenderBox._computeIntrinsicDimension.<anonymous closure>
    #9      _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #10     RenderBox._computeIntrinsicDimension
    #11     RenderBox.getMaxIntrinsicHeight
    #12     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #13     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #14     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #15     RenderBox._computeIntrinsicDimension
    #16     RenderBox.getMaxIntrinsicHeight
    #17     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #18     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #19     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #20     RenderBox._computeIntrinsicDimension
    #21     RenderBox.getMaxIntrinsicHeight
    #22     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #23     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #24     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #25     RenderBox._computeIntrinsicDimension
    #26     RenderBox.getMaxIntrinsicHeight
    #27     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #28     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #29     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #30     RenderBox._computeIntrinsicDimension
    #31     RenderBox.getMaxIntrinsicHeight
    #32     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #33     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #34     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #35     RenderBox._computeIntrinsicDimension
    #36     RenderBox.getMaxIntrinsicHeight
    #37     RenderProxyBoxMixin.computeMaxIntrinsicHeight
    #38     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #39     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #40     RenderBox._computeIntrinsicDimension
    #41     RenderBox.getMaxIntrinsicHeight
    #42     RenderPadding.computeMaxIntrinsicHeight
    #43     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #44     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #45     RenderBox._computeIntrinsicDimension
    #46     RenderBox.getMaxIntrinsicHeight
    #47     RenderFlex._getIntrinsicSize
    #48     RenderFlex.computeMaxIntrinsicWidth
    #49     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #50     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #51     RenderBox._computeIntrinsicDimension
    #52     RenderBox.getMaxIntrinsicWidth
    #53     _RenderSingleChildViewport.computeMaxIntrinsicWidth
    #54     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #55     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #56     RenderBox._computeIntrinsicDimension
    #57     RenderBox.getMaxIntrinsicWidth
    #58     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #59     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #60     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #61     RenderBox._computeIntrinsicDimension
    #62     RenderBox.getMaxIntrinsicWidth
    #63     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #64     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #65     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #66     RenderBox._computeIntrinsicDimension
    #67     RenderBox.getMaxIntrinsicWidth
    #68     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #69     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #70     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #71     RenderBox._computeIntrinsicDimension
    #72     RenderBox.getMaxIntrinsicWidth
    #73     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #74     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #75     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #76     RenderBox._computeIntrinsicDimension
    #77     RenderBox.getMaxIntrinsicWidth
    #78     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #79     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #80     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #81     RenderBox._computeIntrinsicDimension
    #82     RenderBox.getMaxIntrinsicWidth
    #83     RenderProxyBoxMixin.computeMaxIntrinsicWidth
    #84     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #85     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #86     RenderBox._computeIntrinsicDimension
    #87     RenderBox.getMaxIntrinsicWidth
    #88     RenderFlex.computeMaxIntrinsicWidth.<anonymous closure>
    #89     RenderFlex._getIntrinsicSize
    #90     RenderFlex.computeMaxIntrinsicWidth
    #91     RenderBox._computeIntrinsicDimension.<anonymous closure>
    #92     _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
    #93     RenderBox._computeIntrinsicDimension
    #94     RenderBox.getMaxIntrinsicWidth
    #95     RenderIntrinsicWidth._computeSize
    #96     RenderIntrinsicWidth.performLayout
    #97     RenderObject.layout
    #98     RenderBox.layout
    #99     RenderProxyBoxMixin.performLayout
    #100    RenderObject.layout
    #101    RenderBox.layout
    #102    RenderProxyBoxMixin.performLayout
    #103    RenderCustomPaint.performLayout
    #104    RenderObject.layout
    #105    RenderBox.layout
    #106    RenderProxyBoxMixin.performLayout
    #107    _RenderCustomClip.performLayout
    #108    RenderObject.layout
    #109    RenderBox.layout
    #110    RenderConstrainedBox.performLayout
    #111    RenderObject.layout
    #112    RenderBox.layout
    #113    RenderPositionedBox.performLayout
    #114    RenderObject.layout
    #115    RenderBox.layout
    #116    RenderPadding.performLayout
    #117    RenderObject.layout
    #118    RenderBox.layout
    #119    RenderPadding.performLayout
    #120    RenderObject.layout
    #121    RenderBox.layout
    #122    RenderPadding.performLayout
    #123    RenderObject.layout
    #124    RenderBox.layout
    #125    RenderProxyBoxMixin.performLayout
    #126    RenderObject.layout
    #127    RenderBox.layout
    #128    RenderProxyBoxMixin.performLayout
    #129    RenderObject.layout
    #130    RenderBox.layout
    #131    RenderProxyBoxMixin.performLayout
    #132    RenderObject.layout
    #133    RenderBox.layout
    #134    RenderProxyBoxMixin.performLayout
    #135    RenderObject.layout
    #136    RenderBox.layout
    #137    RenderProxyBoxMixin.performLayout
    #138    RenderObject.layout
    #139    RenderBox.layout
    #140    RenderProxyBoxMixin.performLayout
    #141    RenderObject.layout
    #142    RenderBox.layout
    #143    RenderProxyBoxMixin.performLayout
    #144    RenderOffstage.performLayout
    #145    RenderObject.layout
    #146    RenderBox.layout
    #147    RenderProxyBoxMixin.performLayout
    #148    RenderObject.layout
    #149    RenderBox.layout
    #150    _RenderTheatre.performLayout
    #151    RenderObject._layoutWithoutResize
    #152    PipelineOwner.flushLayout
    #153    RendererBinding.drawFrame
    #154    WidgetsBinding.drawFrame
    #155    RendererBinding._handlePersistentFrameCallback
    #156    SchedulerBinding._invokeFrameCallback
    #157    SchedulerBinding.handleDrawFrame
    #158    SchedulerBinding._handleDrawFrame
    #159    _invoke (dart:ui/hooks.dart:145:13)
    #160    PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:338:5)
    #161    _drawFrame (dart:ui/hooks.dart:112:31)
    The following RenderObject was being processed when the exception was fired: RenderIntrinsicWidth#a2242 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    RenderObject: RenderIntrinsicWidth#a2242 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: <none> (can use size)
        constraints: BoxConstraints(280.0<=w<=310.0, 0.0<=h<=715.0)
        size: MISSING
        stepWidth: null
        stepHeight: null
        child: RenderFlex#92efe NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            direction: vertical
            mainAxisAlignment: start
            mainAxisSize: min
            crossAxisAlignment: stretch
            verticalDirection: down
            child 1: _RenderScrollSemantics#eb190 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.loose
                constraints: MISSING
                semantic boundary
                size: MISSING
                child: RenderPointerListener#f0cab NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    behavior: deferToChild
                    listeners: signal
                    child: RenderSemanticsGestureHandler#6db5e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                        parentData: <none>
                        constraints: MISSING
                        size: MISSING
                        behavior: opaque
                        gestures: <none>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    RenderBox was not laid out: RenderIntrinsicWidth#a2242 relayoutBoundary=up5 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    'package:flutter/src/rendering/box.dart':
    Failed assertion: line 2009 pos 12: 'hasSize'
    
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    RenderBox was not laid out: _RenderInkFeatures#dd1f9 relayoutBoundary=up4 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    'package:flutter/src/rendering/box.dart':
    Failed assertion: line 2009 pos 12: 'hasSize'
    
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    RenderBox was not laid out: RenderCustomPaint#632ec relayoutBoundary=up3 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    'package:flutter/src/rendering/box.dart':
    Failed assertion: line 2009 pos 12: 'hasSize'
    
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    RenderBox was not laid out: RenderPhysicalShape#a74c6 relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    'package:flutter/src/rendering/box.dart':
    Failed assertion: line 2009 pos 12: 'hasSize'
    
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 352 pos 12: 'child!.hasSize': is not true.
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    RenderBox was not laid out: RenderPhysicalShape#a74c6 relayoutBoundary=up2
    'package:flutter/src/rendering/box.dart':
    Failed assertion: line 2009 pos 12: 'hasSize'
    
    The relevant error-causing widget was
    AlertDialog
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by scheduler library ═════════════════════════════════
    Updated layout information required for RenderFlex#92efe NEEDS-LAYOUT NEEDS-PAINT to calculate semantics.
    'package:flutter/src/rendering/object.dart':
    Failed assertion: line 3253 pos 12: '!_needsLayout'
    
    ════════════════════════════════════════════════════════════════════════════════
    
  14. self-assigned this
    on Mar 16, 2023
  15. github-actions commented on Apr 6, 2023

    @github-actions

    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 -v and a minimal reproduction of the issue.

  16. locked as resolved and limited conversation to collaborators on Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.d: api docsIssues with https://api.flutter.dev/found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions