Skip to content

Support for interative Drag-Drop Reorderable GridView #46430

Open

Description

@jiaohaibin

Hope GridView can support interactive drag drop reorder.

Activity

  1. added
    f: scrollingViewports, list views, slivers, etc.
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    on Dec 9, 2019
  2. changed the title [-]Interactive drag drop reorder in GridView[/-] [+]Support interatuve for Drag-Drop Reorderable GridView[/+] on Jun 28, 2021
  3. changed the title [-]Support interatuve for Drag-Drop Reorderable GridView[/-] [+]Support for interative Drag-Drop Reorderable GridView[/+] on Jun 28, 2021
  4. bluntmess commented on Jun 28, 2021

    @bluntmess

    Yes a reorderable gridview is required.

    Use case

    For reordering widgets in a Gridview, it is required to have a widget like reorderable Gridview. Just like how Google Keep Notes have a reorderable Gridview to reorder notes.

    For this, I tried various packages on pub.dev/flutter and faced various issues in them:-

    1. Drag_and_drop_gridview - In this package, I was able to successfully reorder Gridview but this widget fails to scroll continuously by dragging a draggable at the ends of Gridview.
      The draggable widget becomes invisible when dropped outside of the Gridview.
      It also doesn't provide a way to stop multiple drags simultaneously.
      Also, It looks like the plugin is no longer maintained.

    2. Reorderable_grid_view - This package is great but it doesn't support scrolling by dragging a draggable. I also made a feature request for it but the author didn't know how to do that. Working great now.

    3. Reorderables - This package doesn't support scroll by dragging a draggable.

    So, all the packages failed to solve the above problems.

    Proposal

    Now it would be great if flutter provides reorderable Gridview just like how it provided reorderable listview. The reorderable should work just like drag and drop Gridview works in Google Keep Notes app.

    Thanks.

  5. OliverRhyme commented on Jul 9, 2021

    @OliverRhyme

    Really need this as other libraries are either buggy or lacking of features.

  6. bluntmess commented on Jul 27, 2021

    @bluntmess

    @OliverRhyme Currently, There have been major improvements and fixes in Reorderable_grid_view.
    Note: I'm talking about the latest Prerelease versions of the plugin.
    This plugin is currently working great for me so you might also wanna give it a try.

  7. OliverRhyme commented on Jul 27, 2021

    @OliverRhyme

    @OliverRhyme Currently, There have been major improvements and fixes in Reorderable_grid_view.
    Note: I'm talking about the latest Prerelease versions of the plugin.
    This plugin is currently working great for me so you might also wanna give it a try.

    Yes I've been using that instead. But I've created some modifications to be able to use the lazy builder and also having the ability of setting maxExtent instead of a fixed no. of columns

  8. idish commented on Sep 27, 2021

    @idish

    Indeed Reorderable_grid_view library looks pretty neat, though still missing out some important features (itemBuilder, slivers support).

  9. added
    would be a good packageSeparate Flutter package should be made for this
    P3Issues that are less important to the Flutter project
    on Dec 13, 2022
  10. sososdk commented on Jan 9, 2023

    @sososdk

    You can try reorderable_plus .

  11. satvikpendem commented on Feb 3, 2023

    @satvikpendem

    @sososdk how does it compare to reorderable_grid_view?

  12. sqrlmstr5000 commented on Apr 4, 2023

    @sqrlmstr5000

    An official ReordableGridView would be a great addition. One that support InteractiveViewer.

  13. added 2 commits that reference this issue on Nov 14, 2023
  14. added a commit that references this issue on Nov 14, 2023
  15. bgenidy commented on Jan 15, 2024

    @bgenidy

    reorderable_plus

    This package is awesome! thanks for sharing it, hope it picks traction and more of the community/flutter team can support making this as part of the core flutter framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamwould be a good packageSeparate Flutter package should be made for this

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions