title: How to show circularprogressindicator along with bottomsheet in flutter?
body: <p>i am using bottomsheet in my code and due to that it is not showing my circularprogressindicator when isLoading is true but else part of ternary operator is working perfectly. Is there anyother way to do that. Or where i am doing wrong in the code?</p>
  
  <pre><code>  (isLoading==true) ? Center(
      child: Container(
        height: 24,
        width: 24,
        child: CircularProgressIndicator(
          backgroundColor: CommonColors.primaryColor,
          strokeWidth: 1,
        ),
      ),
    )
        :
    Column(
      children: &lt;Widget&gt;[
        Expanded(
          child: ListView.separated(
            itemCount: clist.cartlist.length,
            itemBuilder: (BuildContext context, int index) {
              return _buildCartProduct(index);
            },
            separatorBuilder: (context, index) {
              return Divider(
                color: Colors.grey[300],
              );
            },
          ),
        ),
        SizedBox(
          height: 80,
        )
      ],
    ),
    bottomSheet: isLoading?Container():Container(
      height: 80.0,
      color: CommonColors.secondaryBackgroundColor,
      child: Column(crossAxisAlignment: CrossAxisAlignment.end,
        children: &lt;Widget&gt;[
          Container(margin: EdgeInsets.symmetric(horizontal: 16),child:
          Text('Total: \$${clist.getSubTotal()}',
            style: TextStyle(fontWeight: FontWeight.bold,fontSize: 16),)),
          Expanded(
            child: FlatButton(onPressed: (){},
              color: CommonColors.primaryColor,
              child: Row(mainAxisAlignment: MainAxisAlignment.center,
                children: &lt;Widget&gt;[
                  Text(
                    'PLACE',
                    style: TextStyle(
                      color: CommonColors.secondaryBackgroundColor,
                      fontSize: 20.0,
                      fontWeight: FontWeight.bold,
                    ),
                  ),
                ],
              ),
            ),
          ),
        ],
      ),
    ),
  </code></pre>