title: How to set image size in carousel slider flutter
body: <p>I am new in flutter. I am using carousel slider package to show image. I want to set my image size. Now I faced the problem with my vertical image have been crop and show part center only.  Here is my code:</p>
  
  <pre><code>final List&lt;String&gt; imgList = [
    'https://images.unsplash.com/photo-1520342868574-5fa3804e551c?ixlib=rb-0.3.5&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;s=6ff92caffcdd63681a35134a6770ed3b&amp;auto=format&amp;fit=crop&amp;w=1951&amp;q=80',
    'https://images.unsplash.com/photo-1522205408450-add114ad53fe?ixlib=rb-0.3.5&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;s=368f45b0888aeb0b7b08e3a1084d3ede&amp;auto=format&amp;fit=crop&amp;w=1950&amp;q=80',
    'https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-0.3.5&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;s=94a1e718d89ca60a6337a6008341ca50&amp;auto=format&amp;fit=crop&amp;w=1950&amp;q=80',
  ];
  
  final List&lt;Widget&gt; imageSliders = imgList.map((item) =&gt; Container(
    child: Container(
      margin: EdgeInsets.all(5.0),
      child: ClipRRect(
        borderRadius: BorderRadius.all(Radius.circular(5.0)),
        child: Stack(
          children: &lt;Widget&gt;[
            Image.network(item, fit: BoxFit.cover, width: 1000.0),],
        )),),
  )).toList();
  
  
  class CarouselWithIndicatorDemo extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() {
      return _CarouselWithIndicatorState();
    }
  }
  
  class _CarouselWithIndicatorState extends State&lt;CarouselWithIndicatorDemo&gt; {
    int _current = 0;
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(title: Text('Carousel with indicator demo')),
        body: Column(
          children: [
            CarouselSlider(
              items: imageSliders,
              options: CarouselOptions(
                enlargeCenterPage: true,
                aspectRatio: 2.0,
                onPageChanged: (index, reason) {
                  setState(() {
                    _current = index;
                  });}), ),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: imgList.map((url) {
                int index = imgList.indexOf(url);
                return Container(
                  width: 8.0,height: 8.0,
                  margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 2.0),
                  decoration: BoxDecoration(
                    shape: BoxShape.circle,color: _current == index ? Color.fromRGBO(0, 0, 0, 0.9): Color.fromRGBO(0, 0, 0, 0.4),
                  ), );
              }).toList(),
            ),  ]
        ),
      );
    }
  }
  </code></pre>
  
  <p>Anyone can help me? Thanks in advance</p>