Comments (8)
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.
I just pushed something that should fix it:
Can you try and give me some feedback?
Thanks
from flutter_native_image.
Still get the same error it seems
from flutter_native_image.
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.
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.
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.
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.
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)
- Method compress must be called from the worker thread, currently inferred thread is UI thread
- Error Width / Height in Portrait mode
- Package Maintenance
- Deprecated FlutterNativeImagePlugin class in new version of flutter SDK (3.7.6)
- Compress Image to targeted size in kb or mb
- Cannot even use it
- Android build warning
- Exif information not preserving. HOT 1
- is there native blur hash ?
- allow loading of image by bytes HOT 2
- flutter version need Higher HOT 1
- How to use this plugin with image from Assets HOT 2
- .png file has blackbackground after crop HOT 4
- Crop image on Ios doesn't work HOT 2
- java.lang.outofmemoryerror android HOT 1
- Miui Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference HOT 2
- Unhandled Exception: PlatformException(create_error, Temporary file could not be created, null, null)
- bounds are outside of the dimensions of the source image HOT 1
- Add feature for adding filters in image files
- Web support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_native_image.