Skip to content

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

@itsnehabhagat05

Description

@itsnehabhagat05

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],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions