title: Flutter Center Widget in CustomScrollView
body: <p>How do I center an element in custom child scrollview silverlist?</p>
  <pre><code>return CustomScrollView(
    physics: BouncingScrollPhysics(),
    slivers: &lt;Widget&gt;[
      SliverList(
          delegate: SliverChildListDelegate([
        SizedBox(height: widget.height),
  
        HeaderTitle(&quot;Hello there&quot;),
        (data.length == 0)
            ? Center(
                child: Container(
                  // padding: EdgeInsets.fromLTRB(0, 150, 0, 0),
                  child: Column(
                    children: [
                      Text(&quot;No Data Yet&quot;),
                      OutlineButton(
                        onPressed: () {
                          Navigator.of(context).pop();
                        },
                        textColor: Colors.black,
                        child: Text(&quot;Do Something&quot;),
                      ),
                    ],
                  ),
                ),
              )
            : Container()
      ])),
    
      SliverGrid(
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
          childAspectRatio: 10.0 / 10.0,
          crossAxisCount: 2,
        ),
        delegate:
            SliverChildBuilderDelegate((BuildContext context, int index) {
          return CastCard(data[index], null);
        }, childCount: data.length),
      ),
    ],
  );
  </code></pre>
  <p>I have tried to wrap with Center and Column with center property but the text No Date yet is not positioned in the cetner of the screen (with the remaining space available)</p>