title: how to add boxshadow only at the top side in flutter
body: <p>I wanted to add shadow to a box inside <code>BoxDecoration</code> only on top side. Is it possible in flutter ? This is my approach so far but not getting the desired results. Thanks in advannce.</p>
  <pre><code>class SectionHeaderDelegate extends SliverPersistentHeaderDelegate {
    final String title;
    final double height;
  
    SectionHeaderDelegate(this.title, [this.height = 50]);
  
    @override
    Widget build(context, double shrinkOffset, bool overlapsContent) {
      return Container(
        alignment: Alignment.centerLeft,
        padding: EdgeInsets.only(left: 5 * SizeConfig.widthMultiplier),
        decoration: BoxDecoration(
          color: AppColors.colorWhite,
          borderRadius: BorderRadius.only(
              topRight: Radius.circular(30), topLeft: Radius.circular(30)),
  
           boxShadow: &lt;BoxShadow&gt;[
             BoxShadow(
                 color: AppColors.colorLightGrey,
                 blurRadius: 20.0,
                 offset: Offset(0.0, 1.0))
           ],
        ),
        child: Text(title, style: AppStyles.complaints),
      );
    }
  
    @override
    double get maxExtent =&gt; height;
  
    @override
    double get minExtent =&gt; height;
  
    @override
    bool shouldRebuild(SliverPersistentHeaderDelegate oldDelegate) =&gt; false;
  }```
   
  </code></pre>