Skip to content

Commit a1e5054

Browse files
FLUT-958400-[others][flutter]: Review corrections
1 parent 071f39e commit a1e5054

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

Flutter/datagrid/filtering.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,9 +1516,9 @@ By default, the `FilterBehavior.strongDataType` applies to numeric, String, and
15161516
{% endhighlight %}
15171517
{% endtabs %}
15181518

1519-
## Color Customization for Filter Popup Menu Options
1519+
## Customize appearance of Filter Popup Menu
15201520

1521-
The `SfDataGrid` provides complete color customization support for the filter popup menu, allowing you to personalize its appearance and enhance its visual appeal. This enables you to define the look and feel of the filter popup menu more effectively and in a user-friendly manner.
1521+
The `SfDataGrid` provides complete color customization support for the filter popup menu, allowing you to personalize its appearance and enhance its visual appeal.
15221522

15231523
You can apply custom colors and personalize the filter popup menu by configuring the properties listed below through the `SfDataGridTheme.` To enable this, ensure that the `SfDataGrid` is wrapped inside an `SfDataGridTheme` widget.
15241524

@@ -1566,7 +1566,7 @@ The `SfDataGridThemeData` and `SfDataGridTheme` classes are available in the [sy
15661566
> **NOTE**
15671567
The `cancelFilteringLabelColor`, `filterPopupBottomDividerColor`, and `okFilteringLabelColor` properties are supported only on desktop platforms.
15681568

1569-
The following example demonstrates how to customize the color of disabled icons in the filter popup menu using the `filterPopupDisabledIconColor` property.
1569+
The following example shows how to customize the filter popup menu using properties from `SfDataGridTheme`, such as `cancelFilteringLabelButtonColor`, `cancelFilteringLabelColor`, `okFilteringLabelButtonColor`, `okFilteringLabelColor`, `filterPopupCheckboxFillColor`, and `filterPopupDisabledIconColor`.
15701570

15711571
{% tabs %}
15721572
{% highlight Dart %}
@@ -1580,10 +1580,13 @@ import 'package:syncfusion_flutter_core/theme.dart';
15801580
appBar: AppBar(title: const Text('Syncfusion Flutter DataGrid')),
15811581
body: SfDataGridTheme(
15821582
data: SfDataGridThemeData(
1583-
filterPopupCheckboxFillColor: WidgetStatePropertyAll(
1584-
Colors.purple[600],
1585-
),
1586-
filterPopupDisabledIconColor: Colors.pink,
1583+
filterPopupCheckboxFillColor:
1584+
WidgetStatePropertyAll(Colors.green[400]),
1585+
filterPopupDisabledIconColor: Colors.teal[400],
1586+
okFilteringLabelColor: Colors.white,
1587+
okFilteringLabelButtonColor: Colors.indigo[600],
1588+
cancelFilteringLabelColor: Colors.black,
1589+
cancelFilteringLabelButtonColor: Colors.blueGrey[200]
15871590
),
15881591
child: SfDataGrid(
15891592
source: employeeDataSource,
@@ -1614,6 +1617,14 @@ import 'package:syncfusion_flutter_core/theme.dart';
16141617
child: Text('Designation', overflow: TextOverflow.ellipsis),
16151618
),
16161619
),
1620+
GridColumn(
1621+
columnName: 'location',
1622+
label: Container(
1623+
padding: EdgeInsets.all(8.0),
1624+
alignment: Alignment.centerLeft,
1625+
child: Text('Location', overflow: TextOverflow.ellipsis),
1626+
),
1627+
),
16171628
GridColumn(
16181629
columnName: 'salary',
16191630
label: Container(
@@ -1631,7 +1642,7 @@ import 'package:syncfusion_flutter_core/theme.dart';
16311642
{% endhighlight %}
16321643
{% endtabs %}
16331644

1634-
<img alt="flutter datagrid shows filter popup with customized colors for disabled icons" src="images/filtering/flutter-datagrid-customized-disabledicon-color.png" width="689"/>
1645+
<img alt="flutter datagrid shows filter popup menu with customized colors" src="images/filtering/flutter-datagrid-customized-filter-popup-menu.png" width="689"/>
16351646

16361647

16371648

Binary file not shown.
28.8 KB
Loading

0 commit comments

Comments
 (0)