children: List.generate(100, (idx) => Text(“Short text”))
),
),
);
}
}
在垂直方向上内容超出纵轴空间,flutter提示如下错误:
I/flutter ( 8390): The following message was thrown during layout:
I/flutter ( 8390): A RenderFlex overflowed by 997 pixels on the bottom.
I/flutter ( 8390):
I/flutter ( 8390): The overflowing RenderFlex has an orientation of Axis.vertical.
横轴呢?
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: ‘Text overflow’,
home: Scaffold(
appBar: AppBar(title: Text(“MyApp”),),
body: Column(
children: [
Row(
children: [
Text(String.fromCharCodes(Lis