i am getting this error while rendering list of images in flutter Row of List
import 'package:flutter/material.dart'; import '../../helper/mapIndexed.dart'; const List imageList = [ 'https://res.cloudinary.com/du8msdgbj/image/upload/w_560,h_240,,a_ignore,q_auto,f_auto/v1609697109/e42avkuozkqhh8u3dh70.png', 'https://res.cloudinary.com/du8msdgbj/image/upload/w_560,h_240,,a_ignore,q_auto,f_auto/v1609697073/ncuy4b9rnhrwjdwkp6dy.png', 'https://res.cloudinary.com/du8msdgbj/image/upload/w_560,h_240,,a_ignore,q_auto,f_auto/v1609697374/wf6qw4izw2mi1okmex39.png' ]; class SilpleCarousel extends StatelessWidget { @override Widget build(BuildContext context) { return Row( children: [ // here is the issue imageList.mapIndexed((e, i) => Container()) ], ); } }
https://stackoverflow.com/questions/65821050/the-element-type-iterablecontainer-cant-be-assigned-to-the-list-type-widge January 21, 2021 at 12:07PM
没有评论:
发表评论