// Section header widget builder.
Widget _sectionHeaderBuilder(BuildContext context, int section) {
return Material(
child: InkWell(
onTap: () {
print('click section header. -> section:$section');
},
child: Container(
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(left: 16.0),
color: Color.fromRGBO(220, 220, 220, 1),
height: 100,
child: Text('I am section header -> section:$section'),
),
));
}
In the flutter_tableview 1.0.1 docs in the How to use section:
The _sectionHeaderBuilder and the _cellBuilder both use
Inkwellwhich needs to be wrapped inMaterialfor it to work properly. Something like: