android – Flutter two Listview in Row


I’ve 2 listview row widgets inside and I put them inside a SingleChildScrollView in order that each have the identical scroll. However nothing is seen.

Right here is the code:

youngster: Row(kids: [
            SingleChildScrollView(
              child: Row(
                children: [
                  Expanded(
                    child: ListView(
                      physics: NeverScrollableScrollPhysics(),
                      controller: _scrollController2,
                      children: your_history.map((item) {
                        return Column(
                          children: [
                            Container(
                              child: Row(
                                mainAxisAlignment: MainAxisAlignment.spaceAround,
                                crossAxisAlignment: CrossAxisAlignment.center,
                                children: [
                                  Column(
                                    children: [
                                      Text("Sizning javobingiz:"),
                                      Text(item)
                                    ],
                                  ),
                                ],
                              ),
                            ),
                            Divider(
                              colour: Colours.black,
                            ),
                          ],
                        );
                      }).toList(),
                    ),
                  ),
                  Expanded(
                    youngster: ListView(
                      physics: NeverScrollableScrollPhysics(),
                      controller: _scrollController,
                      kids: true_history.map((merchandise) {
                        return Column(
                          kids: [
                            Container(
                              child: Row(
                                mainAxisAlignment: MainAxisAlignment.spaceAround,
                                crossAxisAlignment: CrossAxisAlignment.center,
                                children: [
                                  Column(
                                    children: [Text("To'g'ri javob:"), Text(item)],
                                  ),
                                ],
                              ),
                            ),
                            Divider(
                              colour: Colours.black,
                            ),
                          ],
                        );
                      }).toList(),
                    ),
                  ),
                ],
              ),
            ),
            
          ]),

SingleChildScrollView ning ichiga joyladim. Ammo hech narsa ko’rinmayabdi.
solely String lists are used

the error is as follows:

RenderBox was not laid out: RenderPointerListener#fb2be relayoutBoundary=up5 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'bundle:flutter/src/rendering/field.dart':
Failed assertion: line 1966 pos 12: 'hasSize'

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles