flutter-reorderable-grid-view icon indicating copy to clipboard operation
flutter-reorderable-grid-view copied to clipboard

Abnormal behavior when resizing

Open khjde1207 opened this issue 1 year ago • 2 comments

https://github.com/karvulf/flutter-reorderable-grid-view/assets/18232924/1d107c6f-9e6a-4c90-a73f-5f114227a018

These days, phones with changing screen sizes are being released, such as the Google Pixel Fold.

When the screen size changes, it behaves abnormally.

khjde1207 avatar Sep 03 '23 08:09 khjde1207

Hello @khjde1207 I see why this happens, I will try to find a fix for that

karvulf avatar Sep 03 '23 15:09 karvulf

thank you !

 LayoutBuilder(
            builder: (context, constraints) {
                return     ReorderableBuilder.builder(
                    key: Key(
                        "${gridViewKey.toString()} ${constraints.maxWidth}"),
....
..

I handled this temporarily by changing the key value based on the width.

khjde1207 avatar Sep 03 '23 15:09 khjde1207