Skip to content

Inkwell should be wrapped in Material() #6

@SpudLaw

Description

@SpudLaw

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:

// 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'),
      ),
    ));
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions