Open SpudLaw opened 3 years ago
In the flutter_tableview 1.0.1 docs in the How to use section:
The _sectionHeaderBuilder and the _cellBuilder both use Inkwell which needs to be wrapped in Material for it to work properly. Something like:
Inkwell
Material
// 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
Inkwell
which needs to be wrapped inMaterial
for it to work properly. Something like: