SimformSolutionsPvtLtd / flutter_showcaseview

Flutter plugin that allows you to showcase your features on flutter application. 👌🔝🎉
https://pub.dev/packages/showcaseview
MIT License
1.48k stars 433 forks source link

Failed assertion: line 261 pos 15: 'margin == null || margin.isNonNegative': is not true in 3.0.0 version #458

Closed Zeinab-Kouhkan closed 2 months ago

Zeinab-Kouhkan commented 2 months ago

In 3.0.0 version When set negative padding to targetPadding get this error: Failed assertion: line 261 pos 15: 'margin == null || margin.isNonNegative': is not true. Please restore this feature.

rashi-simform commented 2 months ago

Hello @Zeinab-Kouhkan, This doesn't seem related to the package's version and rather relates to the flutter's version. I am closing this issue with this comment. Please feel free to let me know if you need any help with this.

axb-c commented 2 months ago

image

@Zeinab-Kouhkan Check the use of targetPadding, setting a negative value will trigger this crash.

@rashi-simform It is recommended that margin: targetPadding be parameterized, and if it is set to a negative value, throw an exception and point to the corresponding globalKey, so that it is easier for people using the showcaseview to troubleshoot the problem.