{"repo":"hcbpassos/drag_select_grid_view","free":true,"listed":false,"github":"https://github.com/hcbpassos/drag_select_grid_view","clone":"git clone https://github.com/hcbpassos/drag_select_grid_view.git","description":"A grid that supports both dragging and tapping to select its items.","language":"Dart","stars":136,"topics":["flutter","dart","grid","ui","widget"],"license":"BSD-2-Clause","category":"mobile-apps","readme_excerpt":"drag select grid view A grid that supports both dragging and tapping to select its items. Basic usage DragSelectGridView constructor is very similar to GridView.builder , so you should take your time to understand the latter before diving into this library. Once you are familiar with GridView.builder , probably the only additional piece of information you'll need is DragSelectGridViewController . With it, you're able to know which indexes are selected. Check this example: As you may have noticed in the code above, DragSelectGridView must be used along two other widgets in order to provide a proper user experience. In the example, they are: SelectableItem : A selectable widget, which is going to visually indicate whether the item is selected or not. SelectionAppBar : A custom AppBar , which shows the amount of selected items and an option to unselect them. The example project provides some samples of those widgets. I won't add them to the library, since they are unrelated to the grid itself, but feel free to copy them into your project, as long as you respect the license terms. Advanced usage You can use the setter DragSelectGridViewController.value to directly change the selection (I'm not quite sure why you'd need this, but I don't ask questions). It allows this sort of interaction: You can check the code here. There are some other minor settings you can do to make DragSelectGridView fit your needs, like DragSelectGridView.autoScrollHotspotHeight . Those features are well do","default_branch":null,"files":null,"tree":[],"storefront":"/r/hcbpassos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hcbpassos/drag_select_grid_view/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}