Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not close when enclosed in an inner ListView. #497

Open
magic3584 opened this issue Aug 19, 2024 · 0 comments
Open

Not close when enclosed in an inner ListView. #497

magic3584 opened this issue Aug 19, 2024 · 0 comments

Comments

@magic3584
Copy link

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"),
                          ),
                        );
                      })),
                ],
              );
            }),
      ),
    );
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant