El objeto RenderIndexedSemantics recibió un tamaño infinito durante el diseño

Aug 16 2020

obtengo este error cuando lo uso listviewbuilderpara mi aplicación aquí está mi código

ListView.builder(
        padding: const EdgeInsets.all(0),
        itemCount: 1,
        itemBuilder: (BuildContext context, int index) {
          return Scaffold(
            body: SafeArea( //and the rest of codes... 

Respuestas

1 ArshShaikh Aug 16 2020 at 12:53

La configuración es incorrecta.

Debería ser así

SafeArea(
  child: Scaffold(
    body:ListView.builder();
  ),