Skip to content

[material_ui] Add sortIconBuilder to DataTable, PaginatedDataTable, and DataTableThemeData - #12645

Merged
auto-submit[bot] merged 9 commits into
flutter:mainfrom
puneetkukreja98:port-pr-188729
Sep 15, 2026
Merged

auto-submit[bot] merged 9 commits into
flutter:mainfrom
puneetkukreja98:port-pr-188729

Conversation

@puneetkukreja98

@puneetkukreja98 puneetkukreja98 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR ports flutter/flutter#188729 from flutter/flutter to flutter/packages

Fixes: flutter/flutter#91801

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds a sortIconBuilder parameter to DataTable, PaginatedDataTable, and DataTableThemeData to support custom sorting indicators, along with corresponding tests and documentation. Feedback suggests simplifying the theme resolution in DataTable by removing the redundant fallback to themeData.dataTableTheme.sortIconBuilder, as DataTableTheme.of(context) already handles this fallback.

Comment thread packages/material_ui/lib/src/data_table.dart Outdated
@elliette elliette changed the title [material_ui] Port PR (#188729) from flutter/flutter to material_ui [material_ui] Add sortIconBuilder to DataTable, PaginatedDataTable, and DataTableThemeData Sep 1, 2026
@puneetkukreja98

Copy link
Copy Markdown
Contributor Author

Hi @Piinks , I’ve addressed the feedback and the PR is ready for your review. Please take a look when you have a chance!

Comment thread packages/material_ui/CHANGELOG.md Outdated
@QuncCccccc

Copy link
Copy Markdown
Contributor

Thanks for the contribution! Seems you haven’t completed all of the items in the PR checklist above. Please review the checklist, updating the PR as appropriate:)

@puneetkukreja98

Copy link
Copy Markdown
Contributor Author

Hi @Piinks and @QuncCccccc , I’ve addressed the last feedback and the PR is ready for your review. Please take a look when you have a chance!

@Piinks Piinks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@puneetkukreja98 puneetkukreja98 added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 15, 2026
@auto-submit
auto-submit Bot merged commit c41644a into flutter:main Sep 15, 2026
13 checks passed
GhagSagar23 pushed a commit to Kryonex-Labs/flutter that referenced this pull request Sep 16, 2026
…r#192876)

flutter/packages@bebbb57...c2b58e1

2026-09-15 stuartmorgan@google.com [local_auth] Convert implementation
to Kotlin (flutter/packages#12635)
2026-09-15 mhmmd.bayraktar@gmail.com [pigeon] Treat NSNull as null for
non-null Flutter API returns (flutter/packages#12531)
2026-09-15 daniel.leon@cloudsufi.com [espresso] Adopt code-excerpts for
README (flutter/packages#12644)
2026-09-15 daniel.leon@cloudsufi.com [pointer_interceptor] Adopt
code-excerpts for README (flutter/packages#12641)
2026-09-15 47866232+chunhtai@users.noreply.github.com [ci] Checks
unmerged batch release sync back before next release
(flutter/packages#12868)
2026-09-15 puneetkukreja98@gmail.com [material_ui] Add sortIconBuilder
to DataTable, PaginatedDataTable, and DataTableThemeData
(flutter/packages#12645)
2026-09-15 10687576+bparrishMines@users.noreply.github.com
[cross_file_platform_interface] Platform interface implementation of
`cross_file` (flutter/packages#12825)
2026-09-15 10687576+bparrishMines@users.noreply.github.com [cross_file]
Move cross_file into a federated cross_file directory
(flutter/packages#12869)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Add option to customise DataTable sorting icon

3 participants