drift icon indicating copy to clipboard operation
drift copied to clipboard

Unable to scroll table sideways in drift viewer in Flutter DevTools

Open RoarGronmo opened this issue 1 year ago • 5 comments

Have a large table, with many columns, I see that I cannot scroll the table sideways too see all my columns.

Using Google Chrome as browser.

image

It would also have been very convenient to have a query editor where you could query all data tables in your database, more like the one in Android Studio App Inspector.

It would also been very cool if the drift databse could be connected to the Android Studio App Inspector too... ...but that might be too much to ask for...

RoarGronmo avatar Jan 21 '24 10:01 RoarGronmo

Interesting, I can reproduce the issue as well but db_viewer is using two SingleChildScrollViews to cover both directions so it should work. I need to take a deeper look.

It would also have been very convenient to have a query editor where you could query all data tables in your database, more like the one in Android Studio App Inspector

That sounds like a lot of work, but it should be possible to port at least some of the features like the ability to run custom queries.

It would also been very cool if the drift databse could be connected to the Android Studio App Inspector too... ...but that might be too much to ask for...

That might work with drift_sqflite as a database implementation. But that uses the sqlite3 from the OS which is typically outdated on Android and is also slower due to the overhead of platform calls.

simolus3 avatar Jan 24 '24 22:01 simolus3

Is there any hope for it to be fixed soon ?

RoarGronmo avatar Jan 29 '24 19:01 RoarGronmo

@simolus3 I reported this in january, is there any hoper for a fix before summer ?

I see it is a very handy tool.

RoarGronmo avatar May 14 '24 07:05 RoarGronmo

To be honest I'm not that experienced with Flutter and I don't really understand the problem since we are using a horizontal scroll view. Contributions to fix this are welcome but I don't think I'm effective at fixing this.

simolus3 avatar May 14 '24 12:05 simolus3

Sorry. Missed this issue. This is the current one with a PR linked into it. Hope it is accepted and lands.

As a follow-up, I created https://github.com/simolus3/drift/issues/3177 to make this layout more performant.

FMorschel avatar Aug 27 '24 01:08 FMorschel