simolus3 / drift

Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.
https://drift.simonbinder.eu/
MIT License
2.62k stars 365 forks source link

Unable to scroll table sideways in drift viewer in Flutter DevTools #2852

Open RoarGronmo opened 9 months ago

RoarGronmo commented 9 months ago

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...

simolus3 commented 9 months ago

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.

RoarGronmo commented 8 months ago

Is there any hope for it to be fixed soon ?

RoarGronmo commented 5 months ago

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

I see it is a very handy tool.

simolus3 commented 5 months ago

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.

FMorschel commented 1 month ago

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.