This change fixes an issue with the circle size as it was based on the width of the device. The larger the width, the smaller the rendered circle size. This issue is demonstrated in the attached video. But you could also see the same problem with the example when rotating between portrait and landscape.
This change fixes an issue with the circle size as it was based on the width of the device. The larger the width, the smaller the rendered circle size. This issue is demonstrated in the attached video. But you could also see the same problem with the example when rotating between portrait and landscape.
https://github.com/Pyozer/flutter_material_color_picker/assets/1913052/8b1659f5-bbc9-4028-a3d5-b4244139c99a
Main change was to use a Wrap, rather than a GridView as this ensures a consistent circle size.
Other changes were made to enable the example to run.
Video showing the fix:
https://github.com/Pyozer/flutter_material_color_picker/assets/1913052/19c74f77-7663-45d9-9ce5-b9519111b1af