title: A RenderConstrainedBox expected a child of type RenderBox but received a child of type RenderSliverPadding
body: <p>Now I am using SliverPadding like this:</p>
  <pre><code>SizedBox(
                    height: 200.0,
                    child: SliverPadding(
                      padding: const EdgeInsets.symmetric(vertical: 8.0),
                      sliver: viewService.buildComponent(&quot;articlelist&quot;),
                    ))
  </code></pre>
  <p>but it shows error that:</p>
  <pre><code>======== Exception caught by widgets library =======================================================
  The following assertion was thrown building Container(bg: Color(0xffffffff), constraints: BoxConstraints(0.0&lt;=w&lt;=Infinity, 738.5&lt;=h&lt;=Infinity)):
  A RenderConstrainedBox expected a child of type RenderBox but received a child of type RenderSliverPadding.
  
  RenderObjects expect specific types of children because they coordinate with their children during layout and paint. For example, a RenderSliver cannot be the child of a RenderBox because a RenderSliver does not understand the RenderBox layout protocol.
  The RenderConstrainedBox that expected a RenderBox child was created by: SizedBox ← Column ← Padding ← ColoredBox ← ConstrainedBox ← Container ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← ComponentWidget&lt;ChannelDetailState&gt;-[&lt;ChannelDetailComponent&gt;] ← ⋯
  The RenderSliverPadding that did not match the expected child type was created by: SliverPadding ← SizedBox ← Column ← Padding ← ColoredBox ← ConstrainedBox ← Container ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← ⋯
  The relevant error-causing widget was: 
    Container file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:81:14
  When the exception was thrown, this was the stack: 
  #0      RenderObjectWithChildMixin.debugValidateChild.&lt;anonymous closure&gt; (package:flutter/src/rendering/object.dart:2977:9)
  #1      RenderObjectWithChildMixin.debugValidateChild (package:flutter/src/rendering/object.dart:3004:6)
  #2      SingleChildRenderObjectElement.insertRenderObjectChild (package:flutter/src/widgets/framework.dart:6132:25)
  #3      RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:5805:35)
  #4      RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5501:5)
  ...
  ====================================================================================================
  Reloaded 13 of 1516 libraries in 1,527ms.
  </code></pre>
  <p>how to make <code>RenderConstrainedBox</code> could contain <code>RenderSliverPadding</code>? what should I do to fix it? This is the articlelist page:</p>
  <pre><code>return SliverList(
      delegate: SliverChildBuilderDelegate((context, index) {
        return Slidable(
          key: Key(state.articles[index].id.toString()),
          closeOnScroll: true,
          actionPane: SlidableScrollActionPane(),
          actions: &lt;Widget&gt;[
            IconSlideAction(
              color: Colors.deepOrangeAccent,
              icon: Feather.arrow_up_circle,
              //onTap: () =&gt; handleUpvote(context, item: item),
            ),
          ],
          dismissal: SlidableDismissal(
            closeOnCanceled: true,
            dismissThresholds: {
              SlideActionType.primary: 0.2,
              SlideActionType.secondary: 0.2,
            },
            child: SlidableDrawerDismissal(),
            onWillDismiss: (actionType) {
              //handleUpvote(context, item: item);
              return false;
            },
          ),
          child: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 16.0),
            child: OpenContainer(
              tappable: true,
              closedElevation: 0,
              closedColor: Theme.of(context).scaffoldBackgroundColor,
              openColor: Theme.of(context).scaffoldBackgroundColor,
              transitionDuration: Duration(milliseconds: 500),
              closedBuilder: (BuildContext c, VoidCallback action) =&gt;
                  getViewType(currentView, state.articles[index]),
              openBuilder: (BuildContext c, VoidCallback action) =&gt;
                  buildArticle(state.articles[index]),
            ),
          ),
        );
      }, childCount: state.articles.length),
    );
  </code></pre>