Skip to content

[syncfusion_flutter_datagrid] Filter Icon color and positioning #1002

@steph-lion

Description

@steph-lion

Hi, I'm using the SfDataGrid from its package and SfDataGridTheme from the core package. I applied the filter and sorting icons but, while you can change the color of the sorting icon with sortIconColor property, it seems that I can't change the default icon color of the filter one.
Code:

         data: SfDataGridThemeData(
                headerColor: Theme.of(context).primaryColor,
                sortIconColor: Colors.white),
         child: SfDataGrid

Screenshot 2022-12-08 alle 19 33 49

Also, another problem. As you can see on the screenshot, the column "NAME" is aligned to the content below because I applied a padding of 55 to its left, while I left "SURNAME" column as it initially was. I'm trying to achieve the first result without use manual padding, because when I'm going to use another screen, it will be surely different.
Without the filter and sort icons, the text is centered with the cell below, but the icons move the column text to the left. Is it possible to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions