PlutoGridStyleConfig.dark constructor
const
PlutoGridStyleConfig.dark({
- bool enableGridBorderShadow = false,
- bool enableColumnBorderVertical = true,
- bool enableColumnBorderHorizontal = true,
- bool enableCellBorderVertical = true,
- bool enableCellBorderHorizontal = true,
- bool enableRowColorAnimation = false,
- Color gridBackgroundColor = const Color(0xFF111111),
- Color rowColor = const Color(0xFF111111),
- Color? oddRowColor,
- Color? evenRowColor,
- Color activatedColor = const Color(0xFF313131),
- Color checkedColor = const Color(0x11202020),
- Color cellColorInEditState = const Color(0xFF666666),
- Color cellColorInReadOnlyState = const Color(0xFF222222),
- Color? cellColorGroupedRow,
- Color dragTargetColumnColor = const Color(0xFF313131),
- Color iconColor = Colors.white38,
- Color disabledIconColor = Colors.white12,
- Color gridBorderColor = const Color(0xFF666666),
- Color borderColor = const Color(0xFF222222),
- Color activatedBorderColor = const Color(0xFFFFFFFF),
- Color inactivatedBorderColor = const Color(0xFF666666),
- double iconSize = 18,
- double rowHeight = PlutoGridSettings.rowHeight,
- double columnHeight = PlutoGridSettings.rowHeight,
- double columnFilterHeight = PlutoGridSettings.rowHeight,
- EdgeInsets defaultColumnTitlePadding = PlutoGridSettings.columnTitlePadding,
- EdgeInsets defaultColumnFilterPadding = PlutoGridSettings.columnFilterPadding,
- EdgeInsets defaultCellPadding = PlutoGridSettings.cellPadding,
- TextStyle columnTextStyle = const TextStyle(color: Colors.white, decoration: TextDecoration.none, fontSize: 14, fontWeight: FontWeight.w600),
- TextStyle cellTextStyle = const TextStyle(color: Colors.white, fontSize: 14),
- IconData columnContextIcon = Icons.dehaze,
- IconData columnResizeIcon = Icons.code_sharp,
- Icon? columnAscendingIcon,
- Icon? columnDescendingIcon,
- IconData rowGroupExpandedIcon = Icons.keyboard_arrow_down,
- IconData rowGroupCollapsedIcon = const IconData(0xe355, matchTextDirection: true, fontFamily: 'MaterialIcons'),
- IconData rowGroupEmptyIcon = Icons.noise_control_off,
- BorderRadiusGeometry gridBorderRadius = BorderRadius.zero,
- BorderRadiusGeometry gridPopupBorderRadius = BorderRadius.zero,
Implementation
const PlutoGridStyleConfig.dark({
this.enableGridBorderShadow = false,
this.enableColumnBorderVertical = true,
this.enableColumnBorderHorizontal = true,
this.enableCellBorderVertical = true,
this.enableCellBorderHorizontal = true,
this.enableRowColorAnimation = false,
this.gridBackgroundColor = const Color(0xFF111111),
this.rowColor = const Color(0xFF111111),
this.oddRowColor,
this.evenRowColor,
this.activatedColor = const Color(0xFF313131),
this.checkedColor = const Color(0x11202020),
this.cellColorInEditState = const Color(0xFF666666),
this.cellColorInReadOnlyState = const Color(0xFF222222),
this.cellColorGroupedRow,
this.dragTargetColumnColor = const Color(0xFF313131),
this.iconColor = Colors.white38,
this.disabledIconColor = Colors.white12,
this.menuBackgroundColor = const Color(0xFF414141),
this.gridBorderColor = const Color(0xFF666666),
this.borderColor = const Color(0xFF222222),
this.activatedBorderColor = const Color(0xFFFFFFFF),
this.inactivatedBorderColor = const Color(0xFF666666),
this.iconSize = 18,
this.rowHeight = PlutoGridSettings.rowHeight,
this.columnHeight = PlutoGridSettings.rowHeight,
this.columnFilterHeight = PlutoGridSettings.rowHeight,
this.defaultColumnTitlePadding = PlutoGridSettings.columnTitlePadding,
this.defaultColumnFilterPadding = PlutoGridSettings.columnFilterPadding,
this.defaultCellPadding = PlutoGridSettings.cellPadding,
this.columnTextStyle = const TextStyle(
color: Colors.white,
decoration: TextDecoration.none,
fontSize: 14,
fontWeight: FontWeight.w600,
),
this.cellTextStyle = const TextStyle(
color: Colors.white,
fontSize: 14,
),
this.columnContextIcon = Icons.dehaze,
this.columnResizeIcon = Icons.code_sharp,
this.columnAscendingIcon,
this.columnDescendingIcon,
this.rowGroupExpandedIcon = Icons.keyboard_arrow_down,
this.rowGroupCollapsedIcon = const IconData(
0xe355,
matchTextDirection: true,
fontFamily: 'MaterialIcons',
),
this.rowGroupEmptyIcon = Icons.noise_control_off,
this.gridBorderRadius = BorderRadius.zero,
this.gridPopupBorderRadius = BorderRadius.zero,
});