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

How do I get the position of an item in the list? #76

Open
piratkin opened this issue May 20, 2022 · 0 comments
Open

How do I get the position of an item in the list? #76

piratkin opened this issue May 20, 2022 · 0 comments

Comments

@piratkin
Copy link

Hello! Is it possible to somehow get the position (index) of an item in the list?

...
itemDragHandle: DragHandle(
        child: ClipRRect(
          borderRadius: BorderRadius.circular(4.0),
          child: Container(
            color: Colors.blueGrey,
            width: 40,
            margin: const EdgeInsets.all(4),
            child: Center(
              child: Text(
                index.toString(),
                style: const TextStyle(
                  color: Colors.white,
                ),
              ),
            ),
          ),
        ),
      ),
...
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