FirestoreDataTable select single row #10879
Unanswered
greenc0102
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm using the FirestoreDataTable widget in a web app I'm building and it is nearly perfect for my project. However, one feature that I really need is the ability to select just one row. Is this possible? Essentially I want to click a row and have that be selected, and then when I select another row, deselect the last row and select the new one.
As of now, the canDeleteItems flag must be set to true just to enable row selection (but as far as I'm aware this should change soon as per this discussion). onSelectedRows returns a list of selected rows but as far as I'm aware I can't change those rows myself. The list that is returned also is provided in the order that the rows are displayed on the table, and not the order that they were selected in, so I can't just take the last item from the list as my most recently selected.
Now I suppose I could use FirestoreQueryBuilder and create my own datatable using that. However, this widget is so close to being perfect for me so I just wanted to reach out to the community and see if anyone could tell me that I've missed something really basic and my goal is in fact possible the way things are.
Beta Was this translation helpful? Give feedback.
All reactions