Comments (2)
Hi,
It is the color wheel/circle in the CustomPaint that uses SweepGradient API call that is is not yet implemented in Flutter WEB that causes the crash when this package is used on Flutter Web.
I had a similar issue and reported it here:
flutter/flutter#57752
My report also contains a rough example of how the color wheel/circle can be drawn using alternative API that works on Flutter WEB too. It is included in the above same issue report and can be seen in a DartPad here:
https://dartpad.dartlang.org/dc8a915f169455463e4e2016619e00bb
The DartPad shows this issue alongside a workaround. The example work-around was just a first rough example/draft, it can be cleaned-up and shortened further. The example is MIT license so author of this package is welcome to use it to make a fix for this component too, if you so wish. I don't have time right now to look into the details of this package and make a pull request correction. (I might find some time for it later... depends 😀 )
My above Flutter issue report was a duplicate of an already known issue, the original issue report, that is being tracked by Flutter team, can be found here:
flutter/flutter#41389
Sidenote
A Flutter Web demo/example of a color picker that includes a similar wheel/circle component under its "any color" segment in its color picker, can be seen here:
https://rydmike.github.io/colorpickerdemo/#/
It is using the above described work-around to draw the color circle.
This Tweet thread explains its usage scenarios a bit.
https://twitter.com/RydMike/status/1266037341413654531
from flutter_circle_color_picker.
This is already fixed in current stable version(flutter v2.0.4).
Thank you for your reporting!
from flutter_circle_color_picker.
Related Issues (13)
- The color selected does not match the color ring HOT 2
- How to return color value on onChangeEnd? HOT 3
- Cant pan inside scroll view HOT 1
- Make hex code editable HOT 1
- Flutter Web displaying single color for entire ring HOT 2
- Plans for null safety? HOT 1
- Initial Color not being used HOT 2
- Less an issue than a feature request
- Color of thumb circle not equals underlying color HOT 4
- Request: Option for custom text HOT 5
- Request: Change color from external widget HOT 10
- pub.dev is still 0.1.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_circle_color_picker.