diff --git a/lib/src/pluto_grid_configuration.dart b/lib/src/pluto_grid_configuration.dart index 9b946b169..ba38d94e8 100644 --- a/lib/src/pluto_grid_configuration.dart +++ b/lib/src/pluto_grid_configuration.dart @@ -215,6 +215,7 @@ class PlutoGridStyleConfig { this.borderColor = const Color(0xFFDDE2EB), this.activatedBorderColor = Colors.lightBlue, this.inactivatedBorderColor = const Color(0xFFC4C7CC), + this.activatedCellBorderColor, this.iconSize = 18, this.rowHeight = PlutoGridSettings.rowHeight, this.columnHeight = PlutoGridSettings.rowHeight, @@ -271,6 +272,7 @@ class PlutoGridStyleConfig { this.borderColor = const Color(0xFF222222), this.activatedBorderColor = const Color(0xFFFFFFFF), this.inactivatedBorderColor = const Color(0xFF666666), + this.activatedCellBorderColor, this.iconSize = 18, this.rowHeight = PlutoGridSettings.rowHeight, this.columnHeight = PlutoGridSettings.rowHeight, @@ -382,6 +384,12 @@ class PlutoGridStyleConfig { /// receive focus or are currently selected. final Color activatedBorderColor; + /// Cell border color set when widgets such as [PlutoRow] and [PlutoCell] + /// receive focus or are currently selected. + /// + /// If it is not set, the [activatedBorderColor] is used as the cell border color. + final Color? activatedCellBorderColor; + /// Border color set when widgets such as [PlutoRow] and [PlutoCell] lose focus. final Color inactivatedBorderColor; diff --git a/lib/src/ui/pluto_base_cell.dart b/lib/src/ui/pluto_base_cell.dart index 2dabd63c4..ef5aacbb9 100644 --- a/lib/src/ui/pluto_base_cell.dart +++ b/lib/src/ui/pluto_base_cell.dart @@ -199,7 +199,8 @@ class _CellContainerState extends PlutoStateWithChange<_CellContainer> { stateManager.rowGroupDelegate!.isExpandableCell(widget.cell), enableCellVerticalBorder: style.enableCellBorderVertical, borderColor: style.borderColor, - activatedBorderColor: style.activatedBorderColor, + activatedBorderColor: + style.activatedCellBorderColor ?? style.activatedBorderColor, activatedColor: style.activatedColor, inactivatedBorderColor: style.inactivatedBorderColor, gridBackgroundColor: style.gridBackgroundColor,