这种情况是什么原因导致的?
```
@override
Widgetbuild(BuildContext context) {
var location = Localizations.localeOf(context);
debugPrint(location.toString());
return Scaffold(
appBar:AppBar(actions: [
Container(
color: Colors.yellow,
child:ElevatedButton(
onPressed: () {},
child:
Container(color: Colors.red, child:Text('播放')))),
],),
body:ListView(
children: [
Container(
color: Colors.yellow,
child:ElevatedButton(
onPressed: () {},
child:
Container(color: Colors.red, child:Text('播放')))),
Container(
height:200,
child:Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(
'item.videoTitle',
maxLines:1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.titleSmall,
),
Wrap(
direction: Axis.horizontal,
spacing:5,
runSpacing:0,
children: [
...[1,2,3,4]
.map(
(e) =>ElevatedButton(
onPressed: () {}, child:const Text('分类')),
)
.toList(),
],
),
Expanded(
child:Text(
'item.videoTitle' *10,
maxLines:2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium,
),
),
// Container(color: Colors.yellow,child: Icon(Icons.book)),
Container(
color: Colors.yellow,
child:ElevatedButton(
onPressed: () {},
child:
Container(color: Colors.red, child:Text('播放')))),
// Row(
// children:[
// Container(color: Colors.yellow,child: ElevatedButton(onPressed: (){}, child: Container(color: Colors.red,child: Text('播放')))),
// // const Icon(Icons.play_circle_outline_rounded,color: redColor,),
// // const Spacer(),
// ]
// ),
],
),
)
],
),
);
}
```
网友评论