Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set 3 row widget as 3 column in flutter

here is the output that i want

enter image description here

here is what my output is

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

here is the code

ListView.builder(
            shrinkWrap: true,
            physics: BouncingScrollPhysics(),
            itemBuilder: (context, index) {
              final data = diseaseList[index];
              return     Padding(
              padding: const EdgeInsets.only(right: 25, left: 25, bottom: 15),
              child: FittedBox(
                child: Row(
                  children: [
                    DiseaseCard(
                      sectionName: data.diseaseName,
                      image: data.image,
                    ),
                  ],
                ),
              ),
            );
            
            },
            itemCount: diseaseList.length,
          )

how to get exact output like this in flutter???

>Solution :

Try This:

return MaterialApp(
  title: title,
  home: Scaffold(
    appBar: AppBar(
      title: const Text(title),),
    body: GridView.count(
      crossAxisCount: 3,
      children: List.generate(100, (index) {
        return Center(
          child: Text(
            'Item $index',
            style: Theme.of(context).textTheme.headline5,
          ),
        );
      }),
    ),
  ),
);
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading