thanks for sharing your knowledge and honestly mentioning what you do and do not know. Unlike many other instructors who confuse their viewers with half baked knowledge. Thanks again. loved your sincerity for the topic. Edit: your video led me to complete a task on a very crucial time.. Thanks a bunch BTW, to take picture, I used following code and it worked for me: final Directory extDir = await getExternalStorageDirectory(); final String dirPath = "${extDir.path}"; // gives path of app directory in string format final String filePath = "$dirPath/image_${timeStamp()}.png" // adding a unique name to the file being saved //finally capturing the image controller.takePicture(filePath); This saves the captured image inside the app directory
Hey, cuz I'm trying to implement and use camera it in a particular screen without initializing anything outside of that screen. But, I can't figure out a way to get this CameraDescription list. Is there any way I can get cameras (i.e. await availableCameras() ) in any screen and not in the main function? A suggestion would be helpful. Thanks, SG!
Hello. I'm using the Camera plugin and i'm trying to use de ultraHigh resolution (3840x2160), but the max resolution I get is 1920x1080. I'm running the app on Samsung A10S. How do I get a better resolution?
Having an issue with the camera plugin: The example app works just fine when it's just that code from main.dart however, whenever I try to call that same code from another page, either through routing or bottom navigation bar, I get this error: The following NoSuchMethodError was thrown building Builder: The method '[]' was called on null. Receiver: null Tried calling: [](0)
Hi, it is an amazing tutorial. very informative. but it got me wondering, Is there any way that it can be used to perform live videos, like going live on Instagram or Cameo? i'd greatly appreciate the help.
Fantastic tutorial that solved a couple of camera issues for me. Thank you!
thanks for sharing your knowledge and honestly mentioning what you do and do not know. Unlike many other instructors who confuse their viewers with half baked knowledge. Thanks again. loved your sincerity for the topic.
Edit: your video led me to complete a task on a very crucial time.. Thanks a bunch
BTW, to take picture, I used following code and it worked for me:
final Directory extDir = await getExternalStorageDirectory();
final String dirPath = "${extDir.path}"; // gives path of app directory in string format
final String filePath = "$dirPath/image_${timeStamp()}.png" // adding a unique name to the file being saved
//finally capturing the image
controller.takePicture(filePath);
This saves the captured image inside the app directory
Hey, cuz I'm trying to implement and use camera it in a particular screen without initializing anything outside of that screen. But, I can't figure out a way to get this CameraDescription list.
Is there any way I can get cameras (i.e. await availableCameras() ) in any screen and not in the main function?
A suggestion would be helpful.
Thanks,
SG!
Hello. I'm using the Camera plugin and i'm trying to use de ultraHigh resolution (3840x2160), but the max resolution I get is 1920x1080. I'm running the app on Samsung A10S. How do I get a better resolution?
Would it be like using security cameras using intelbras API an example?
thank so much for share your knowledge!
thank you so much for all your tutorials...very helpful
Great Tutorial!
any updates on this topic? (inserting a button, capturing images/videos)
Im trying to build an embedded camera (Just like insta or snapchat)
you can wrap the camera in a stack and place a button on the bottom.
source code Link plz
Awesome tutorial, thanks
How to record video in background when the screen is locked in Flutter?
Having an issue with the camera plugin: The example app works just fine when it's just that code from main.dart
however, whenever I try to call that same code from another page, either through routing or bottom navigation bar, I get this error:
The following NoSuchMethodError was thrown building Builder:
The method '[]' was called on null.
Receiver: null
Tried calling: [](0)
did you find a solution ??
if yes save me
@@amarghemmour1903 My solution was not to use a bottom navigation bar. Camera plugin works great without it.
@@amarghemmour1903 If you are using iOS, camera is not supported on the simulator.
Thanks For Video....
How to make a flutter video surveillance app with video analytics? How to make a free analog of TrackView and IP webcam?
Can we add live camera filters in flutter and how?
16:23 why don't you use hot reload?
I wasn't thinking. No other reason. Hot reload would be ideal in this situation, and would have saved a few seconds.
Hi, it is an amazing tutorial. very informative. but it got me wondering, Is there any way that it can be used to perform live videos, like going live on Instagram or Cameo? i'd greatly appreciate the help.
bro is this applicable for live streaming?
or did you find the solution how to add a live streaming feature in app?
@@mubasheransari442 That's what I am also looking for. I can't find better help for live streaming functionality
thanks for the video.
how to add flash?
Did you found a Solution for that Camera Stretching ?
No, but there are a few open bugs filed on this issue. I suspect it should be fixed in a future version. It is still in development.
@@dashtodartlang187 is there any way that camera preview inside a Container
That could be a part of the solution ;)
AspectRatio(
aspectRatio: controller.value.aspectRatio,
child: CameraPreview(controller)
)
maybe
final size = MediaQuery.of(context).size;
final deviceRatio = (size.width) / (size.height/2);
return AspectRatio(
aspectRatio: deviceRatio,
child: CameraPreview(controller),
);
Nice tutorial! Can you please update the source code? it's unavailable
hi how can upload multiple images to server with php
This might help you to get takePicture working:
pub.dev/packages/camera#-example-tab-