fluttercandies / flutter_image_compress

flutter image compress
MIT License
632 stars 215 forks source link

Throw more descriptive error when user has not included pica in their html #302

Open ShreyashKore opened 3 months ago

ShreyashKore commented 3 months ago

Currently, if pica is not included in the HTML we get null is not subtype of Function which might not be clear to new users.

CaiJingLong commented 3 months ago

Good job.

In this case, should we provide clearer guidance in error messages? For example, tell users where to view documents or how to add them?

ShreyashKore commented 3 months ago

I think guiding users to read documentation seems better than providing a link to pica.js. Do you want me to add link to pub.dev page or the github readme?