Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #254, How to have selected rows on table create with AsyncDataTableSource? #271

Closed
wants to merge 1 commit into from

Conversation

MogensO
Copy link

@MogensO MogensO commented Mar 22, 2024

Fixes #254
I just changed line 116 of AsyncDataTableSource setting the selected argument of the _clone method to true.

@maxim-saplin
Copy link
Owner

If I get the change right... It will always make the rows selected by default, correct?

@MogensO
Copy link
Author

MogensO commented Mar 22, 2024

Yes but only if the surrounding _rows[rowIndex].selected == true.

@maxim-saplin
Copy link
Owner

One of the tests is failing, the change breaks old behaviour:
❌ /Users/runner/work/data_table_2/data_table_2/test/custom_features_test.dart: AsyncPaginatedDataTable2 Select/deselect all (failed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to have selected rows on table create with AsyncDataTableSource?
2 participants