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

onReorderStarted for ReorderableColumn #75

Closed
Antzy opened this issue Jul 10, 2020 · 0 comments · Fixed by #131
Closed

onReorderStarted for ReorderableColumn #75

Antzy opened this issue Jul 10, 2020 · 0 comments · Fixed by #131

Comments

@Antzy
Copy link

Antzy commented Jul 10, 2020

I have a ReorderableColumn with elements which stretch to fill width. Problem is that their height is too much and so dragging is difficult. I want to collapse the list elements to just the title when reordering is started.
I tried it out with ReorderableWrap and it works fine but moving an element to the first position is near impossible for some reason. Placing in all other positions is pretty normal.
So can I get onReorderStarted property for ReorderableColumn or a way to place elements at first place for ReorderableWrap?

For example. if we replace the demo ReorderableWrap code with, we are unable to drag element to first position:

Widget makeTile(Widget child) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: <Widget>[
        child,
      ],
    );
  }

  @override
  void initState() {
    super.initState();
    _tiles = <Widget>[
      makeTile(Icon(Icons.filter_1, size: _iconSize)),
      makeTile(Icon(Icons.filter_2, size: _iconSize)),
      makeTile(Icon(Icons.filter_3, size: _iconSize)),
      makeTile(Icon(Icons.filter_4, size: _iconSize)),
      makeTile(Icon(Icons.filter_5, size: _iconSize)),
      makeTile(Icon(Icons.filter_6, size: _iconSize)),
      makeTile(Icon(Icons.filter_7, size: _iconSize)),
      makeTile(Icon(Icons.filter_8, size: _iconSize)),
      makeTile(Icon(Icons.filter_9, size: _iconSize)),
    ];
  }
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

Successfully merging a pull request may close this issue.

1 participant