Showing empty widget while FutureBuilder is loading data
Advertisements I have the following FutureBuilder: child: FutureBuilder( future: fetchNotifications(widget.usuarioId), builder: (context, snapshot) { if (snapshot.hasData) { List<dynamic>? filteredList = snapshot.data as List; return ListView.separated( separatorBuilder: (BuildContext context, int index) => new Divider( color: Colors.black26, thickness: 0.5, ), itemCount: filteredList.length, shrinkWrap: true, itemBuilder: (BuildContext context, index) { NotificationModelo notificacion = filteredList[index]; var textoNot = notificacion.texto;… Read More Showing empty widget while FutureBuilder is loading data