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

Use ReorderableListView instead of this package #84

Open
avinokur4 opened this issue Dec 5, 2022 · 3 comments
Open

Use ReorderableListView instead of this package #84

avinokur4 opened this issue Dec 5, 2022 · 3 comments

Comments

@avinokur4
Copy link

No description provided.

@LCmaster
Copy link

I'm interested in knowing how you share list items between multiple ReorderableListViews.

@edwardcahyadi
Copy link

I'm interested in knowing how you share list items between multiple ReorderableListViews.

If your lists are vertical, you can section off parts of the ReorderableListView using immovable elements.

ReorderableListView(
        children: [
          GestureDetector(
            key: const Key('Morning'),
            onLongPress: () {}, // prevent reordering
            child: Text('Morning'),
          ),
          for (var item in firstList)
            Container(
              key: ObjectKey(item),
              child: Text(item),
            ),


          GestureDetector(
            key: const Key('Afternoon'),
            onLongPress: () {}, // prevent reordering
            child: Text('Afternoon'),
          ),
          for (var item in secondList)
            Container(
              key: ObjectKey(item),
              child: Text(item),
            ),


          GestureDetector(
            key: const Key('Evening'),
            onLongPress: () {}, // prevent reordering
            child: Text('Evening'),
          ),
          for (var item in thirdList)
            Container(
              key: ObjectKey(item),
              child: Text(item),
            ),
         ],


        onReorder: (int oldIndex, int newIndex) {
          // reorder the list
        },
      );

@rubinbasha
Copy link

rubinbasha commented Dec 9, 2024

hmm, how about reordering multiple items at the same time? That is mainly the feature this library offers from my point of view. I can have groups of items and I can change the order of the groups, order of items within group and can move item between groups. This is actually what can not be done with ReorderableListView to my knowledge

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

4 participants