Giter Club home page Giter Club logo

Comments (8)

btastic avatar btastic commented on August 15, 2024

Hey thank you for reporting. I think this is a Bug introduced with the targetWidth and targetHeight feature. I might have a look at it in a bit.

from flutter_native_image.

btastic avatar btastic commented on August 15, 2024

I just pushed something that should fix it:

6226d21

Can you try and give me some feedback?

Thanks

from flutter_native_image.

RobertBrunhage avatar RobertBrunhage commented on August 15, 2024

Still get the same error it seems

from flutter_native_image.

btastic avatar btastic commented on August 15, 2024

Try removing the library from your pubspec.yml, save it (so it gets removed), then add it again (so it gets installed again). Doesn't sound like you have the latest version.

from flutter_native_image.

RobertBrunhage avatar RobertBrunhage commented on August 15, 2024

Ahh okey, fixed that but that gave me error for the newly added code. This error happened when I started the app.

C:\Users\Robert\AppData\Roaming\Pub\Cache\git\flutter_native_image-5b2e1c9e27c480dd28c38f9a36fb34ee01bd6c29\android\src\main\java\com\example\flutternativeimage\FlutterNativeImagePlugin.java:51: error: incompatible types: Object cannot be converted to int
int targetWidth = call.argument("targetWidth") == null ? 0 : call.argument("targetWidth");
^
C:\Users\Robert\AppData\Roaming\Pub\Cache\git\flutter_native_image-5b2e1c9e27c480dd28c38f9a36fb34ee01bd6c29\android\src\main\java\com\example\flutternativeimage\FlutterNativeImagePlugin.java:52: error: incompatible types: Object cannot be converted to int
int targetHeight = call.argument("targetHeight") == null ? 0 : call.argument("targetHeight");
^
2 errors

from flutter_native_image.

btastic avatar btastic commented on August 15, 2024

There was an issue that I did not cast the call.argument to an int before assigning it: 77b06ad

Please try again

from flutter_native_image.

RobertBrunhage avatar RobertBrunhage commented on August 15, 2024

Sweet it works now!

Will test it more though out the day and see if everything works correctly!

Thanks a lot for the fast fixes

from flutter_native_image.

btastic avatar btastic commented on August 15, 2024

Cool, thanks for your feedback.

Will leave this open for the next 24 hours or so.

Thanks again

from flutter_native_image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.