Skip to content

Added showCheckboxColumn parameter to DataTable and PaginatedDataTable#47552

Merged
bkonyi merged 8 commits intomasterfrom
data_table_checkboxes
Jan 6, 2020
Merged

Added showCheckboxColumn parameter to DataTable and PaginatedDataTable#47552
bkonyi merged 8 commits intomasterfrom
data_table_checkboxes

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Dec 20, 2019

Description

The showCheckboxColumn property will determine whether or not selectable rows in DateTable or PaginatedDataTable will contain a leading CheckBox.

showCheckboxColumn == true:
Screen Shot 2019-12-20 at 2 13 38 PM

showCheckboxColumn == false:
Screen Shot 2019-12-20 at 2 19 05 PM

Related Issues

N/A

Tests

I added the following tests:

  • DataTable control test - no checkboxes

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read Handling breaking changes.

  • No, no existing tests failed, so this is not a breaking change.
  • Yes, this is a breaking change. If not, delete the remainder of this section.
    • I wrote a design doc: https://flutter.dev/go/template Replace this with a link to your design doc's short link
    • I got input from the developer relations team, specifically from: Replace with the names of who gave advice
    • I wrote a migration guide: Replace with a link to your migration guide

@bkonyi bkonyi requested a review from Hixie December 20, 2019 22:20
@fluttergithubbot fluttergithubbot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Dec 20, 2019
@Hixie
Copy link
Contributor

Hixie commented Dec 20, 2019

approach SGTM

`showCheckboxColumn` will determine whether or not selectable rows in
DateTable or PaginatedDataTable will contain a leading CheckBox.
@bkonyi bkonyi force-pushed the data_table_checkboxes branch from 0269eb0 to b239cdf Compare December 27, 2019 18:51
@bkonyi
Copy link
Contributor Author

bkonyi commented Dec 27, 2019

Not sure why I'm having some golden tests fail. @Piinks would you happen to know if I'm just holding something wrong?

@Piinks
Copy link
Contributor

Piinks commented Dec 27, 2019

Looks some new golden files landed and weren't triaged. Should be all good now. I've re-run the failed tasks. :)

@bkonyi
Copy link
Contributor Author

bkonyi commented Dec 27, 2019

Looks some new golden files landed and weren't triaged. Should be all good now. I've re-run the failed tasks. :)

My hero! Thanks Kate :-)

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo minor comments

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

home: Material(child: buildTable()),
));

//print(find.byType(Checkbox).allCandidates.length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the print?

@bkonyi bkonyi merged commit a0e5621 into master Jan 6, 2020
@bkonyi bkonyi deleted the data_table_checkboxes branch January 6, 2020 21:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants