PaginatedDataTable row hovered and Selected color

369 views
Skip to first unread message

Murali Kumar

unread,
Jan 30, 2022, 9:51:35 AM1/30/22
to Flutter Development (flutter-dev)
DataRow( color: MaterialStateColor.resolveWith( (Set<MaterialState> states) => states.contains(MaterialState.selected) ? Colors.blue
: Colors.blue[400]),

not working for PaginatedDataTable. But same thing working on DataTable

Murali Kumar

unread,
Jan 31, 2022, 1:42:30 AM1/31/22
to Flutter Development (flutter-dev)
Hi,
Now working add onSelectChanged in DataRow
DataRow(
onSelectChanged: (bool? value) {
        //selectedId = _packageList[index].packageId;
      },

 
 color: MaterialStateColor.resolveWith(
               (Set<MaterialState> states) => states.contains(MaterialState.selected)
                                                          ? Colors.blue
                                                          : Colors.blue[400]),
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/a9ee8f89-faac-4ad3-a572-39c748268567n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages