#Flutter

  Рет қаралды 12,556

Mobile Programmer

Mobile Programmer

Күн бұрын

In this article, we will how to select an image by capturing from camera or gallery, then we will save the image in app's temporary directory in a separate thread and then load it from there.
For this demo we need three packages.
Add Dependencies
Open pubspec.yaml file and then add the below dependencies.
path_provider: ^1.6.9
image_picker: ^0.6.7
image: ^2.1.4
path_provider for getting access to the app's directory.
image_picker for open camera or gallery and get the image.
image for encoding and decoding the image.
Make the following changes in your Android and iOS project.
iOS
Add the following keys to your Info.plist file, located in project root/ios/Runner/Info.plist:
NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.
Android
API 29+
No configuration required - the plugin should work out of the box.
API less than 29
Add android:requestLegacyExternalStorage="true" as an attribute to the application tag in AndroidManifest.xml. The attribute is false by default on apps targeting Android Q.
Medium Article Link:
/ select-image-from-came...
Article Link:
www.coderzheave...
Source Code
bitbucket.org/...

Пікірлер: 29
@BelajarPemrogramanPemula
@BelajarPemrogramanPemula 4 жыл бұрын
thank you, I'm taking part in studying. at this time I also create content about learning flutter for beginners
@imranmuhajir4480
@imranmuhajir4480 4 жыл бұрын
Wahh, sampai sini kak.....Maju terus
@BelajarPemrogramanPemula
@BelajarPemrogramanPemula 4 жыл бұрын
@@imranmuhajir4480 hehehee
@user-gu5ts5nx8r
@user-gu5ts5nx8r 4 жыл бұрын
Great man is back with another useful video. Thanks for sharing.
@MobileProgrammer
@MobileProgrammer 4 жыл бұрын
More to come!
@user-gu5ts5nx8r
@user-gu5ts5nx8r 4 жыл бұрын
@@MobileProgrammer can't wait, thanks for your great efforts.
@sozkaya
@sozkaya 3 жыл бұрын
Obviously you are a good developer, and thanks for sharing your knowledge. On the other hand, I want to point out a thing for all similar tutorials; learning requires deep understanding of concepts. It is not possible to understand from " now we add this, now we are writing this, and we must add this code....." style tutorials. But why.... I have to see 'WHY's... Not what to write. Take this as an improvement please. Keep up great work 👍🏼
@MobileProgrammer
@MobileProgrammer 3 жыл бұрын
Sure. Thanks for the feedback
@jamshidali3855
@jamshidali3855 3 жыл бұрын
Thank You So much sir.....your flutter tutorial videos are really amazing these are much helpful for me special this one......
@IqbalHussain-nl2lc
@IqbalHussain-nl2lc 3 жыл бұрын
Thanks a bunch! This was more informative than I was hoping for it to be :) :D
@pacegrin7403
@pacegrin7403 4 жыл бұрын
Thanks many👍🏼😁
@sarahahmed2112
@sarahahmed2112 3 жыл бұрын
Thank you for the informative videos. I appreciate that you choose to create videos on the least-explored parts of flutter, like SQLite and storing images - which not a lot of channels focus on as much as they focus on Flutter UI. I have one request: I wish you could speak as you're coding, not after that. Speeding up the coding and recording a separate voice-over is very overwhelming and sometimes unstructured. A lot of the corrections made during the code go unexplained. I had to slow down the video below normal rate to be able to understand the explanation and follow up with the code because it was too fast. And there were some things I wish you'd elaborated more on. And some things go unmentioned (for eg: the import statements, things from previous videos like the Utility class, etc.) Thanks for the valuable content, though!
@MobileProgrammer
@MobileProgrammer 3 жыл бұрын
Thanks for the feedback. I will take care of those in my upcoming videos.
@melonpun
@melonpun 4 жыл бұрын
Another great video 👍. Brother can you make a how to make "add to favorites" function tutorial?
@MobileProgrammer
@MobileProgrammer 4 жыл бұрын
What you exactly meant by add to favorites?
@melonpun
@melonpun 4 жыл бұрын
@@MobileProgrammer I am new to programming and I am currently learning app development using Flutter. My first app is a greeting cards app, I managed to do a lot of things but I am stuck in the part where the user can click on heart icon on the card and add it to favorites section and then a separate view will only show the favourited list. I am using firebase to store the images and there is not user authentication. Maybe you can point me to the way on how to achieve this.
@basilismastoras8861
@basilismastoras8861 3 жыл бұрын
great video!!! can i use as source Image network???
@MobileProgrammer
@MobileProgrammer 3 жыл бұрын
Yes
@lakshitsharma71
@lakshitsharma71 2 жыл бұрын
Thanks sir. But I want to save that selected image to project directory assets folder can you help?
@omerucansu2569
@omerucansu2569 2 жыл бұрын
how do i recall a picture i saved
@tasyaagnesgoei
@tasyaagnesgoei 2 жыл бұрын
Hello! I tried to adding this : _button('Camera', ImageSource.camera), _button('Gallery', ImageSource.gallery), and this: _select() But it shows error: The element type 'dynamic' can't be assigned to the list type 'Widget'. Do u have any solutions for this? Thanks in advance!
@hirenviradiya2203
@hirenviradiya2203 3 жыл бұрын
how to pick image after gallery to remove or created app in store..
@lovekeshsinghkhalsa4251
@lovekeshsinghkhalsa4251 3 жыл бұрын
how to share Image.memory image in flutter on WhatsApp or else...
@jamshidali3855
@jamshidali3855 3 жыл бұрын
Sir i want to pass an image from one page to another......after this video i am passing the final imageFile is there is any better method for it??
@MobileProgrammer
@MobileProgrammer 3 жыл бұрын
You can pass the file path .
@homeplantsdev7399
@homeplantsdev7399 3 жыл бұрын
Can you please provide the source code ?
@MobileProgrammer
@MobileProgrammer 3 жыл бұрын
Please check the description for written tutorial. Here is the source code link. bitbucket.org/vipinvijayan1987/tutorialprojects/src/ImageSelectionAndSaveToDiskPerformance/ Thanks.
@cellinside82
@cellinside82 4 жыл бұрын
Where is the source code? I can' find it into the provided link...
@cellinside82
@cellinside82 4 жыл бұрын
Found! bitbucket.org/vipinvijayan1987/tutorialprojects/src/ImageSelectionAndSaveToDiskPerformance/FlutterTutorialProjects/flutter_demos/lib/others/ImageSelection/ImageSelectionScreen.dart
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 46 М.
Alat yang Membersihkan Kaki dalam Hitungan Detik 🦶🫧
00:24
Poly Holy Yow Indonesia
Рет қаралды 11 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 10 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 16 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Hozier - Take Me To Church
4:17
Hozier
Рет қаралды 866 МЛН
Elon's Big Bet On Tesla's Future | Optimus 2
18:07
Ryan Shaw
Рет қаралды 101 М.
#Google Flutter - MVVM in Flutter using Providers.
34:34
Mobile Programmer
Рет қаралды 57 М.
Flutter Performance Tips for Fast Apps
9:12
Tadas Petra
Рет қаралды 19 М.
Flutter - Saving Files to Application Folder and Gallery | Flutter Tutorial
19:03
Alat yang Membersihkan Kaki dalam Hitungan Detik 🦶🫧
00:24
Poly Holy Yow Indonesia
Рет қаралды 11 МЛН