iampawan / 30DaysOfFlutter

Learn Flutter in 30 Days
413 stars 323 forks source link

Day 12 : I'm not able to scroll down in the catalog app when we are adding 50 items #44

Open itsnehabhagat05 opened 1 year ago

itsnehabhagat05 commented 1 year ago

Day 12 : I'm not able to scroll down in the catalog app when we are adding 50 items class HomePage extends StatelessWidget { const HomePage({super.key});

@override Widget build(BuildContext context) { // int days = 30; // String name = "codepur"; final dummyList = List.generate(50, (index) => CatalogModel.items[0]);

return Scaffold(  
  appBar: AppBar(
    title: Text("Catalog App",
    ),

  ),
  body: Padding(
    padding: const EdgeInsets.all(16.0),
    child: ListView.builder(
      itemCount: dummyList.length,
      itemBuilder: (context, index) {
        return ItemWidget(
          item : dummyList[index],