title: How can I use a CustomScrollView as a child
body: <p>I'm a newbie who just started Flutter.</p>
  <p>I want to use CustomScrollView as a child of Row/Column Widget</p>
  <p>It works very well when CustomScrollView is root.
  But as soon as I put it into Row Widget's child, it spouted an error.</p>
  <p>Couldn't CustomScrollview be used as a child of Row widget?
  if so, please tell me the reason, and What is the best alternative?</p>
  <p>Or if there is an error in my code, I want you to correct it.</p>
  <p><a href="https://i.stack.imgur.com/0Dm6c.png" rel="nofollow noreferrer">What I want to make</a></p>
  <p><a href="https://i.stack.imgur.com/OFoZu.png" rel="nofollow noreferrer">my CustomScrollViewWidget</a></p>
  <p>I don't know if this is what you want, but here's my error.</p>
  <pre><code>══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
  The following assertion was thrown during performLayout():
  'package:flutter/src/rendering/viewport.dart': Failed assertion: line 1758 pos 16:
  'constraints.hasBoundedHeight': is not true.
  Either the assertion indicates an error in the framework itself, or we should provide substantially
  more information in this error message to help you determine and fix the underlying cause.
  In either case, please report this assertion by filing a bug on GitHub:
    https://github.com/flutter/flutter/issues/new?template=BUG.md
  The relevant error-causing widget was:
    CustomScrollView
  
  
  
  The following RenderObject was being processed when the exception was fired: RenderShrinkWrappingViewport#0344f relayoutBoundary=up14 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
    needs compositing
    creator: ShrinkWrappingViewport ← IgnorePointer-[GlobalKey#e4530] ← Semantics ← _PointerListener ←
      Listener ← _GestureSemantics ←
      RawGestureDetector-[LabeledGlobalKey&lt;RawGestureDetectorState&gt;#a61b3] ← _PointerListener ← Listener
      ← _ScrollableScope ← _ScrollSemantics-[GlobalKey#42b3c] ← RepaintBoundary ← ⋯
    parentData: &lt;none&gt; (can use size)
    constraints: BoxConstraints(unconstrained)
    size: MISSING
    axisDirection: right
    crossAxisDirection: down
    offset: ScrollPositionWithSingleContext#46fe1(offset: 0.0, range: null..null, viewport: null,
      ScrollableState, ClampingScrollPhysics -&gt; RangeMaintainingScrollPhysics, IdleScrollActivity#66c28,
      ScrollDirection.idle)
  This RenderObject had the following child:
      child 0: RenderSliverList#42dfb NEEDS-LAYOUT NEEDS-PAINT
  ════════════════════════════════════════════════════════════════════════════════════════════════════
  
  ════════ Exception caught by rendering library ═════════════════════════════════
  RenderBox was not laid out: RenderShrinkWrappingViewport#0344f relayoutBoundary=up14 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
  'package:flutter/src/rendering/box.dart':
  Failed assertion: line 1702 pos 12: 'hasSize'
  The relevant error-causing widget was
  CustomScrollView
  lib\0. TestCode.dart:31
  ════════════════════════════════════════════════════════════════════════════════
  
  </code></pre>
  <p>Here is my code!</p>
  <pre><code>class WrapVisit extends StatefulWidget {
    WrapVisitState createState() =&gt; WrapVisitState();
  }
  
  class WrapVisitState extends State&lt;WrapVisit&gt; {
    @override
    Widget build(BuildContext context) {
      return new Container(
        padding: EdgeInsets.all(10),
        color: Colors.white,
        child: Column(
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                new Text(
                  &quot;브랜드관&quot;,
                  textAlign: TextAlign.left,
                  style: TextStyle(fontWeight: FontWeight.bold),
                ),
                new Container(
                  margin: EdgeInsets.all(5),
                  child: new Text(
                    &quot;전체보기&quot;,
                    textAlign: TextAlign.right,
                    style: TextStyle(
                      fontSize: 10,
                      color: Colors.black,
                    ),
                  ),
                ),
                CustomScrollView(
                  shrinkWrap: true,
                  scrollDirection: Axis.horizontal,
                  slivers: [
                    SliverList(
                      delegate: SliverChildListDelegate(
                        [
                          ... SliverListChildWidgets ...
                        ],
                      ),
                    ),
                  ],
                ),
              ],
            ),
          ],
        ),
      );
    }
  }
  </code></pre>