Skip to content

Paginated datatable widget cannot give color to table header #132428

@ilham-hdytllh

Description

@ilham-hdytllh

Is there an existing issue for this?

Use case

When using the PaginatedDataTable widget, I found that I couldn't directly set the color for the table header. However, upon inspecting the class of PaginatedDataTable, I noticed that it utilizes the DataTable widget internally. The DataTable widget has a parameter called "headingRowColor," which allows you to set the header color.

To achieve the desired header color for PaginatedDataTable, I ended up modifying the PaginatedDataTable class. I added an additional property to this class, and then passed this property through to the underlying DataTable class. As a result, I was able to set the header color for my PaginatedDataTable.

Proposal

This is before i modify the class.

Screenshot (302)

And this is after i modify the class.

Screenshot (300)

So, this is the code after i modify,PaginatedDataTable with paramater headingRowColor.

Screenshot (299)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions