Skip to content

Not close when enclosed in an inner ListView. #497

Open
@magic3584

Description

flutter_slidable: 3.1.1

@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: ListView.builder(
            itemCount: 3,
            itemBuilder: (context, index) {
              return Column(
                children: [
                  Text("Header"),
                  ListView.builder(
                      itemCount: 3,
                      shrinkWrap: true,
                      physics: NeverScrollableScrollPhysics(),
                      itemBuilder: ((context, index) {
                        return Slidable(
                          endActionPane:
                              ActionPane(motion: DrawerMotion(), children: [
                            SlidableAction(
                              label: "Delete",
                              onPressed: (context) {},
                            )
                          ]),
                          child: Container(
                            width: double.infinity,
                            height: 40,
                            child: Text("data"),
                          ),
                        );
                      })),
                ],
              );
            }),
      ),
    );
  }

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