我创建了一个列表视图,但它显示像素错误超载
这是您的列表视图
return ListView.builder(
itemCount: titles.length,itemBuilder: (context,index) {
return Card(
elevation: 50,child: InkWell(
splashColor: Colors.green,highlightColor: Colors.red,child: Row(
children: <Widget>[
Container(
height: 100.0,width:50.0,decoration: BoxDecoration(
gradient:LinearGradientStyle.linearGradient(
orientation:LinearGradientStyle.ORIENTATION_HORIZONTAL,gradientType: LinearGradientStyle.GRADIENT_TYPE_AMIN
)
),),Container(
margin: EdgeInsets.all(10),child: Text(
numbers[index],)),Container(
margin: EdgeInsets.all(10),child: GradientText((titles[index]),gradient:gradient,style:TextStyle(fontSize:20.0,fontWeight:FontWeight.bold,//Text(titles[index]),)
],onTap: () => onTaps[index](),));
});
如果您需要更多代码,请发表评论 ...
而不是溢出错误,它应该位于列表的第二行。如果您有任何解决方案,请帮助我。...