Flutter sfDataGrid Scroll is working in android touch screen

42 Views Asked by At

I am using sfDataGrid within SingleChildScrollView With this I am able to scroll with mouse wheel in a web browser. When I try thins in android emulator, touch and slide scrolling is not working

If I remove SingleChildScrollView, I am getting out of area exception as I have more data than the screen can hold. Any suggestions on how to get vertical scroll working with touch and slide?

I am using sfDataGrid within SingleChildScrollView.

SingleChildScrollView(
              child: Column(children: [
            StreamBuilder<List<dynamic>>(
                stream: myStreamController.stream, // getMyClinics(),
                builder: (context, snapshot) {
                  {
                    if (snapshot.hasData) {
                      ....
                      ....
                      return SfDataGrid(....)
                   }
                  }
                }
            )
           ])
1

There are 1 best solutions below

0
On

solved it with

Column(children: [
            Expanded(
                // add this
                child: Align(
                    alignment: Alignment.bottomCenter,
                    child: StreamBuilder<List<dynamic>>(