selectionColor property Null safety
final
Defines the default configuration of selection in SfDataGrid
.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
dataGridThemeData: SfDataGridThemeData(
selectionStyle: DataGridCellStyle(
backgroundColor: Colors.blue,
textStyle: TextStyle(color: Colors.black)
)
)
),
child: SfDataGrid(),
),
)
);
}
Implementation
final Color? selectionColor;