mhmzdev / awesome_snackbar_content

A beautiful dart package to uplift your SnackBar experiences in the application
https://pub.dev/packages/awesome_snackbar_content
MIT License
100 stars 67 forks source link

Version Solving Error Fix #18

Closed JohnF17 closed 1 year ago

JohnF17 commented 1 year ago

Fix for the version solving error

Error

Because every version of awesome_snackbar_content depends on flutter_svg ^1.0.3 and [app] depends on flutter_svg ^2.0.0+1, awesome_snackbar_content is forbidden.

Changes made

jonmountjoy commented 1 year ago

When I use your version, @JohnF17 , I see this in the error logs:

flutter: Unable to load asset: "packages/awesome_snackbar_content/assets/bubbles.svg".
flutter: The asset does not exist or has empty data.
flutter: #0   PlatformAssetBundle.load.<anonymous closure>
asset_bundle.dart:254
flutter: Unable to load asset: "packages/awesome_snackbar_content/assets/types/failure.svg".

etc.

I wonder if the SVG package changed asset loading?

jonmountjoy commented 1 year ago

My bad - I needed to recompile. All is good. Thank you.

JohnF17 commented 1 year ago

My bad - I needed to recompile.

Nonetheless, thank you @jonmountjoy, for pointing out what had seemed to be a potential issue and gave a viable solution to those who might encounter it.

All is good. Thank you.

You are most welcome.