Good evening sir, i have tried this, but i am not able to see the bottomsheet and cannot crop any picture, i have followed all the steps clearly but cannot see the outcome.
I have this error: Type: InvalidType The method 'uploadData' isn't defined for the type '_ImageCropperState'. Try correcting the name to the name of an existing method, or defining a method named 'uploadData'
@@Ali-Ideas I have enabled firebase storage before trying this custom widget but I encountered the same error. Can you make a video about this one? Here's the error I got: Target of URI doesn't exist: '/backend/firebase_storage/storage.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist. The method 'uploadData' isn't defined for the type '_ImageCropperState'. Try correcting the name to the name of an existing method, or defining a method named 'uploadData'.
Hello, I'm having a problem: the widget doesn't have an image, it's empty. How can I fix this bug? thanks in advance and congratulations for your tutorial.
@@eznaaa8525 but I have another problem, sorry, when I press the crop button, it loads infinitely but doesn't update my state management, do you have a solution?
@@Priviroom I added this snippet in my code. Future uploadData(String path, Uint8List image) async { try { final ref = FirebaseStorage.instance.ref().child(path); await ref.putData(image); final downloadUrl = await ref.getDownloadURL(); return downloadUrl; } catch (e) { print('Error uploading image: $e'); return null; } } here's the link to the full code.
@@eznaaa8525 sorry, I think that on youtube, the links are not displayed but. so 2 solution, send me a link in comment but in an incomplete way not to be detected by youtube (ex no http or .com) or then by email
Awesome, great content! What if I want to return the image not as an image path (url), but as a local image file so that I can manage it on my page after cropping?
Hi, this seems like a great tutorial. However I'm getting an error which is "Target of URI doesn't exist: '/flutter_flow/flutter_flow_widgets.dart'". I tried eluding it from compilation but which got rid of the error but the widget was not working and I received a blank background. Do you have any tips?
@@Ali-Ideas Hi, thanks for the quick response. The code compiles correctly, however I still get a blank screen when testing the functionality. I'm pretty positive I copied all the steps correctly. I'll try to play with it some more though. Do you have any ideas to why I might be having an issue?
Hiya, great tut, been looking for one for awhile, unfortunately even with updated dependices I'm receiving this error. Any ideas? Error: Couldn't resolve the package 'crop_your_image' in 'package:crop_your_image/crop_your_image.dart'. lib/custom_code/widgets/image_cropper.dart:14:8: Error: Not found: 'package:crop_your_image/crop_your_image.dart' import 'package:crop_your_image/crop_your_image.dart'; ^ lib/custom_code/widgets/image_cropper.dart:40:28: Error: Method not found: 'CropController'. final _crop_controller = CropController();
the code doesn't work anymore - Compilation error 86 packages have newer versions incompatible with dependency constraints. How do I fix this thanks for the video
thanks for this tutorial and i like how you answer on comments, i have small issue: when i add the custom widget to the component it come with solid color like the container and (not working in test mode it shows the component only)