Flutter 在布局过程中,RenderIndexedSemantics对象的大小为无限大
当我对我的应用程序使用Flutter 在布局过程中,RenderIndexedSemantics对象的大小为无限大,flutter,dart,Flutter,Dart,当我对我的应用程序使用listviewbuilder时,我遇到了这个错误这里是我的代码 ListView.builder( padding: const EdgeInsets.all(0), itemCount: 1, itemBuilder: (BuildContext context, int index) { return Scaffold( body: SafeArea( //and the re
listviewbuilder
时,我遇到了这个错误这里是我的代码
ListView.builder(
padding: const EdgeInsets.all(0),
itemCount: 1,
itemBuilder: (BuildContext context, int index) {
return Scaffold(
body: SafeArea( //and the rest of codes...
设置错误
应该是这样,
SafeArea(
child: Scaffold(
body:ListView.builder();
),