ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: 10,
itemBuilder: (context, i) {
return Padding(
padding: const EdgeInsets.only(right: 20.0),
child: Hello()
);
},
),
How can I make Hello()
only build once? I was using List.generate()
and I saw that I had to use ListView.Builder()
to make them build only once. But, it seems like it is not working. I can see that it is sending http requests as I scroll like List.generate()
.