Skip to content

Using sidekick inside a TableView.builder #4

Open
@manueljpeixoto

Description

@manueljpeixoto

When I try to use sidekick inside a TableView.buider I get this error,
type 'RenderSliverList' is not a subtype of type 'RenderBox'
this happens for any limition of flutter or is by design?

@override
  Widget build(BuildContext context) {
    return Column(children: <Widget>[
      Expanded(
          flex: 2,
          child: Stack(children: <Widget>[
            GestureDetector(
              onTap: () => controller.moveToTarget(context),
              child: Sidekick(
                tag: 'target',
                child: Container(
                  color: Colors.blue,
                ),
              ),
            ),
          ])),
      Expanded(
          flex: 1,
          child: Container(
            child: ListView.builder(
                itemCount: 1,
                itemBuilder: (context, index) {
                  return GestureDetector(
                        onTap: () => controller.moveToTarget(context),
                        child: Sidekick(
                          tag: 'source',
                          targetTag: 'tagTarget',
                          child: Container(
                            height: 50,
                            width: 400,
                            color: Colors.red,
                        ),
                      ));
                }),
          ))
    ]);
  }

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