Closed GuHiroo closed 8 months ago
I figured out how to change it, by changing headingCheckboxTheme and datarowCheckboxTheme. Sorry for bothering
Note : since flutter v 3.10 (Material 3) has some break change about checkbox theme anyone check this issue https://github.com/flutter/flutter/issues/130295 and here how we can change checkbox theme right now.
checkboxTheme: CheckboxThemeData(
fillColor: WidgetStateProperty.resolveWith((states) {
if (states.contains(WidgetState.selected)) {
return Colors.red;
}
return null;
}),
),
Hi, I'm using your library to create a table, and want to change the checkbox's color. It works fine using primaryColor in flutter 3.3.0. Now i need to upgrade flutter to 3.16.0 while keeps the theme unchange, so I set useMaterial3: false. Everything goes fine, except checkbox in paginated_data_table_2. It keeps showing the default color in Material3, which is purple. I've tried set checkbox color in theme or let the table as a child of theme, didn't work though.
Is there any way to set the color? Using data_table_2 2.5.9 Appreciate to any help.