0

I an trying to insert more picture from api to json

new Carousel(
          images:[
            for(var i=0 ;i<8;i++){
            NetworkImage("https://tdiscount.tn/modules/zeroslideshow/views/img/slideImages/"+data[i]["results"])}
          ],
          boxFit: BoxFit.fill,
          autoplay: true,
          animationCurve: Curves.fastOutSlowIn,
          animationDuration: Duration(milliseconds: 1000),
          dotSize: 4.0,
          indicatorBgPadding: 4.0,
        ),

Error: This requires the 'control-flow-collections' experiment to be enabled. (experiment_not_enabled at [flutter_app] lib\main.dart:57)

Kalana
  • 5,631
  • 7
  • 30
  • 51

0 Answers0