Skip to content

Commit 1b459cf

Browse files
committed
Use getIconData for sort arrow icon retrieval
Replaces getIcon with getIconData when fetching the sort arrow icon to ensure correct icon data is used for the DataTable2Control widget.
1 parent d707056 commit 1b459cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flutter/flet_datatable2/lib/src/datatable2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _DataTable2ControlState extends State<DataTable2Control> {
8383
smRatio: widget.control.getDouble("sm_ratio", 0.67)!,
8484
lmRatio: widget.control.getDouble("lm_ratio", 1.2)!,
8585
sortArrowIcon:
86-
widget.control.getIcon("sort_arrow_icon") ?? Icons.arrow_upward,
86+
widget.control.getIconData("sort_arrow_icon") ?? Icons.arrow_upward,
8787
sortArrowAnimationDuration: widget.control.getDuration(
8888
"sort_arrow_animation_duration", Duration(microseconds: 150))!,
8989
checkboxAlignment:

0 commit comments

Comments
 (0)