If you find this video useful, consider Following me on: Twitter: twitter.com/theretroportal Instagram: instagram.com/retroportalstudio Happy Coding! ✌️😁
iOS: Crash or lost connection when press Gallery / Camera: Open Runner/Info.plist and add: NSPhotoLibraryUsageDescription Photo Library Access Warning NSCameraUsageDescription My description about why I need this capability
Great video, helped me a lot! Thank you! Just a little reminder, you forgot to return the Image widget in the decide function. I don't know Dart very profoundly but in the second time you ran the app it worked even without the return, if it was on android with Java probably it wouldn't.
Anyone knows how to fix that issue [The element type 'Widget?' can't be assigned to the list type 'Widget'], it shows when I call the _decideImageView function in the container.
For anyone who got an error like this, ```Column's children must not contain any null values, but a null value was found at index 0```. A pretty simple way of solving this is, you just don't call method _decideImageView() on line 85, and put the following line there, imageFile == null ? Text('No Image Selected') : Image.file(imageFile,), This works for me. Hope this could help you.
I/flutter (21426): (elided 5 frames from class _AssertionError and package dart:async) !children.any((widget child) => child == null)': is nort true this errors are coming when i click on i select image or camera.
Add an return to the Image.file(imageFile); like this Widget _decideImageView(){ if(imageFile == null){ return Text("No Image"); } else{ return Image.file(imageFile); } }
First shot is not recognised because it's the first shot of the phone. If you have a new emulator device please try to use the official camera to take the first shot of the phone, after this the app will immediately accept also the first camera shot.
"Column's children must not contain any null values, but a null value was found at index 0" ....this is the error that i got after completing tutorial ...can anyone help please
Hey! Can you please explain when did this error occour? After capturing/picking the image or when you initially run the app! And make sure that you are passing correct widgets as Column's children!!
@Javier Sanchez Please check if you are "Returning" the Text view if the image == null. 😁 and Image in the else clause. If the error persis, send me the file over! I'll look at it ✌😁
The method 'pickImage' isn't defined for the type 'ImagePicker'. Try correcting the name to the name of an existing method, or defining a method named 'pickImage'.
Thank you for the amazing tutorial! I'm getting the same error as you got at 20:10. The failed assertion error. It's still there even after restarting the app like you did. Please, if you can help.
"Column's children must not contain any null values, but a null value was found at index 0" ....this is the error that i got after completing tutorial ...can anyone help please my code Widget _zdecydujJakie() { if (imageFile == null) { return Text('nie dokonano wyboru zdjęcia'); } else { Image.file(imageFile, width: 400, height: 400); } } @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar(title: new Text('Zrób zdięcie')), body: Container( child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ _zdecydujJakie(), RaisedButton( onPressed: () { _showChoiceDialog(context); }, child: Text('wybierz zdjęcie'), ) ]), ), )); } } this error is displayed when I choose the appropriate photo in the gallery or b accept the photo taken with the camera. please help :)
If you find this video useful, consider Following me on:
Twitter: twitter.com/theretroportal
Instagram: instagram.com/retroportalstudio
Happy Coding! ✌️😁
please give code always
Can you share code on Github?
@@beramargroup2020 do you have code to this?
iOS: Crash or lost connection when press Gallery / Camera:
Open Runner/Info.plist and add:
NSPhotoLibraryUsageDescription
Photo Library Access Warning
NSCameraUsageDescription
My description about why I need this capability
Thanks for rhe iOS update mate! Pinned!
@@RetroPortalStudio is there any way that camera preview inside a container
great! thank you so much! I'm also struggling with this error!
Can you share code on Github?
Navigation.of(context).pop() also not working
Thankyou for a clear and concise tutorial
Great video, helped me a lot! Thank you! Just a little reminder, you forgot to return the Image widget in the decide function. I don't know Dart very profoundly but in the second time you ran the app it worked even without the return, if it was on android with Java probably it wouldn't.
I got an error. it said, "Columns children must not contain any values, but a null value was found at index 1" how to solve it:(
hi bro,
how to fix :"Column's children must not contain any null values, but a null value was found at index 0
tks !!
in _decideImageView method he didnt return the Image.file widget try using return keyword there
Anyone knows how to fix that issue [The element type 'Widget?' can't be assigned to the list type 'Widget'], it shows when I call the _decideImageView function in the container.
someone know how to solve this: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null) ?? thx
For anyone who got an error like this, ```Column's children must not contain any null values, but a null value was found at index 0```.
A pretty simple way of solving this is, you just don't call method _decideImageView() on line 85, and put the following line there,
imageFile == null ? Text('No Image Selected') : Image.file(imageFile,),
This works for me. Hope this could help you.
Thanks it's very helpful.
Thnx for this tutorial, it was helpful and very clear.
it is showing type 'Future' is not a subtype of type '() => void
The camera captured images in the galley is empty. Is it because the updated version of image picker implements XFile instead of File for image?
Im getting an error saying
Columns children must not contain any null values,but a null value was found
Can someone help me with this asap .thankyou
i follow this video but i have exception
PlatformException(already_active, Image picker is already active, null)
Not able to access Imagepicker.pickImage and File imageFile, why can anyone help
Good tutorial
I/flutter (21426): (elided 5 frames from class _AssertionError and package dart:async)
!children.any((widget child) => child == null)': is nort true
this errors are coming when i click on i select image or camera.
Add an return to the Image.file(imageFile);
like this
Widget _decideImageView(){
if(imageFile == null){
return Text("No Image");
}
else{
return Image.file(imageFile);
}
}
@@burak7149 thanks bruh :)
@@burak7149 Thank u very much sir ❤️ ur comment is very helpful to me 😊
It's showing "pickImage" is not defined for the type imagerpicker
Congratulations, helped me a lots!
Intresting explanation, thanks!
getting error in File imgae file turning into late File image file and giving LateInitializationError, Please help someone
thanks
Gallery is spelt like this BTW
But thanks for thw help!
How do you upload personal images to gallery upon launch for iOS? Thanks for the tutorial btw
First shot is not recognised because it's the first shot of the phone. If you have a new emulator device please try to use the official camera to take the first shot of the phone, after this the app will immediately accept also the first camera shot.
on a real device (android phone) when I take the picture from camera It takes like 3 seconds or more until image is displayed on screen...
Please provide the code or github link. Its very urgent
Check this.. This is the updated Version ruclips.net/video/U_yqwBdb1jE/видео.html , you'll find the code (Drive Link) in Description!
@@RetroPortalStudio thank you
"Column's children must not contain any null values, but a null value was found at index 0" ....this is the error that i got after completing tutorial ...can anyone help please
Hey! Can you please explain when did this error occour? After capturing/picking the image or when you initially run the app! And make sure that you are passing correct widgets as Column's children!!
RetroPortal Studio the error occurs after I take a pic or choose from gallery...I replicated ur video
RetroPortal Studio I added Widget _decideImageView() to Column, above RaisedButton() widget
@Javier Sanchez Please check if you are "Returning" the Text view if the image == null. 😁 and Image in the else clause.
If the error persis, send me the file over! I'll look at it ✌😁
@@RetroPortalStudio I am getting the same error and the image file is checked for null. I am getting similar error.
The method 'pickImage' isn't defined for the type 'ImagePicker'.
Try correcting the name to the name of an existing method, or defining a method named 'pickImage'.
ImagePicker.pickImage has been depreciated?
It is now updated with ImagePicker.getImage()
Hey, my app exits without any error message whatsoever when importing the camera dependency. Any idea how to fix this?
Did you check the dependency version in lock file? If that is also okay, i will have to look at the program to figure out whats wrong :)
@@RetroPortalStudio thank you for the response, I think I solved it by upgrading to AndroidX and upgrading all dependencies
is there any way that camera preview inside a container
Is there a way to access windows laptop camera?
Great help
Muchas gracias, ni la documentacion original del paquete funciona bien. Graciassssssss
Thank you for the amazing tutorial!
I'm getting the same error as you got at 20:10. The failed assertion error. It's still there even after restarting the app like you did. Please, if you can help.
in _decideImageView method he didnt return the Image.file widget try using return keyword there
@@ocean_academy Thanks sir i was facing the same error
Thanks for the tutorial. On Flutter docs this is way more complicated but it's using a different package. What's the difference?
thank you!
Thanks for tutorial
Thanks for your video!
I'd like to have an overlay on top of the camera to guide the user. it is possible?
thanks
excelente vídeo!
code link?
"Column's children must not contain any null values, but a null value was found at index 0" ....this is the error that i got after completing tutorial ...can anyone help please
my code
Widget _zdecydujJakie() {
if (imageFile == null) {
return Text('nie dokonano wyboru zdjęcia');
} else {
Image.file(imageFile, width: 400, height: 400);
}
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(title: new Text('Zrób zdięcie')),
body: Container(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
_zdecydujJakie(),
RaisedButton(
onPressed: () {
_showChoiceDialog(context);
},
child: Text('wybierz zdjęcie'),
)
]),
),
));
}
}
this error is displayed when I choose the appropriate photo in the gallery or b accept the photo taken with the camera. please help :)
Sir can I have a connection with u through facebook or something ?? Is there any group related to you. I want a quick reply
i just cant access pickImage and getImage
Pick image doesn't work on current version of imagepicker
Declare
Final picker=imagepicker
And use
Picker.getImage()
That should work👍
Video quality is bad, record high quality video like 720p, 1080p
Already available : ruclips.net/video/U_yqwBdb1jE/видео.html !
Thank you ✌😁
bro source code please
add a git source pls
Here is the recent tutorial on this topic ruclips.net/video/U_yqwBdb1jE/видео.html ! Source code is linked in description ✌😁
@@RetroPortalStudio This video code is not uploaded?????in that video description .Please share it ASAP
Can you share code on Github?
I suggest you to take a look at this tutorial: ruclips.net/video/U_yqwBdb1jE/видео.html ✌😁