flutter_image_compress icon indicating copy to clipboard operation
flutter_image_compress copied to clipboard

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

Open ShreyashKore opened this issue 1 year ago • 2 comments

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.

ShreyashKore avatar May 11 '24 06:05 ShreyashKore

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?

CaiJingLong avatar May 14 '24 01:05 CaiJingLong

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?

ShreyashKore avatar May 17 '24 17:05 ShreyashKore