title: flutter image carousel change border radius
body: <p>Hello I am trying to make an image carousel using carousel_slider package and attaching a gesture detector to each carousel item.I wanted to make the slider image curved.I tried to used border radius but not working.What am i missing here</p>
  <pre><code>class BuildCarousel extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Container(
        decoration: BoxDecoration(borderRadius: BorderRadius.circular(10)),
        child: CarouselSlider(
          options: CarouselOptions(
            height: 200,
            initialPage: 2,
            enableInfiniteScroll: false,
            reverse: false,
            autoPlay: true,
            autoPlayInterval: Duration(seconds: 3),
            autoPlayAnimationDuration: Duration(milliseconds: 800),
            enlargeCenterPage: true,
            scrollDirection: Axis.horizontal,
          ),
          items: [
            'https://charlielawrance.com/wp-content/uploads/2017/10/13-Ad-Examples.jpg',
            'https://webcdn-adespressoinc.netdna-ssl.com/wp-content/uploads/2019/09/fb-collection-ads-2019-1024x536.jpg',
          ].map((i) {
            return Builder(
              builder: (BuildContext context) {
                return Container(
                  decoration:
                      BoxDecoration(borderRadius: BorderRadius.circular(10)),
                  padding: EdgeInsets.all(0.0),
                  height: MediaQuery.of(context).size.height * 0.30,
                  width: MediaQuery.of(context).size.width,
                  child: GestureDetector(
                    child: CachedNetworkImage(
                      imageUrl: i,
                      placeholder: (context, url) =&gt; CupertinoActivityIndicator(),
                      errorWidget: (context, url, error) =&gt; Icon(Icons.error),
                    ),
                    onTap: () =&gt; Navigator.push&lt;Widget&gt;(
                      context,
                      CupertinoPageRoute(
                        builder: (context) =&gt;
                            CollectionToProduct(category: 'watch'),
                      ),
                    ),
                  ),
                );
              },
            );
          }).toList(),
        ),
      );
    }
  </code></pre>
  <p>}</p>