Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 446

ListViewBuiler inside Row flutter

$
0
0

i am trying to add a listview inside a row , but i got this Error

enter image description here

I have in the row Two widgets the first one with a column , the second widget is the listview builder that return another widget .

I am trying to make the row look like below picture

enter image description here

this is my code

body: SingleChildScrollView(        child: Column(          children: [            Row(              children: [                Column(                  children: [                    Stack(                      children: [                        Container(                          height: 60,                          width: 60,                          decoration: const BoxDecoration(                              color: Colors.red,                              shape: BoxShape.circle,                              image: DecorationImage(                                  image: AssetImage("assets/images/meee.jpg"))),                        ),                        Positioned(                          bottom: 0,                          right: 0,                          child: Container(                            padding: EdgeInsets.all(5),                            decoration: BoxDecoration(                                color: Colors.blue, shape: BoxShape.circle),                            child: Text("+",                              style: TextStyle(color: Colors.white),                            ),                          ),                        )                      ],                    ),                    const SizedBox(                      height: 7,                    ),                    const Text("Your Story",                      style: TextStyle(color: Colors.white, fontSize: 13),                    )                  ],                ),                ListView.builder(                  itemCount: 3,                  scrollDirection: Axis.horizontal,                  itemBuilder: (BuildContext context, int index) {                    return __buildStory();                  },                ),              ],            ),          ],        ),      ),

Viewing all articles
Browse latest Browse all 446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>