Search code examples
fluttergridviewflutter-layoutflutter-dependenciesflutter-gridview

flutter reordable_grid_view package child white background


I am using flutter recordable grid view package recordable_grid_view

And it puts a white background behind my custom widgets while dragging.

How to make it transparent or how to give it rounded borders. It makes the layout looks so ugly. Image example


Solution

  • Nikoloz Miruashvili's answer returns an error if using some Material widgets like Chip. This is working for me in that case:

    dragWidgetBuilder: (index, widget) =>
                              Material(
                                 color: Colors.transparent,
                                 child: widget
                                 ),