hi may I know how do you differenciate different path because when I choose the image each would be the same file name can you help me please thank you
Thank you so much, but I have an error in firebase storage can you help me, please? it does not work and the loading sign does not go from the home page
@@LazyTechNo W/Firestore( 6542): (24.1.0) [Firestore]: Listen for Query(target=Query(imageURLs order by time, __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}, I got this error, I am new with programing can you please help me
@@LazyTechNo the rules of my storage firebase: rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read,write: if true; } } }
Thanks for making this video it helped me a lot, how can I set the + (plus) icon, add a button to the right of the image which is at the last of the image not at the beginning, all the selected images should go to the last.
@@LazyTechNo Hello LazyTechNo I just tried to implement the Home but i get this errors, snapshot.data.documents.lenght: itemCount: snapshot.data.documents.length ERROR: The property 'docs' can't be unconditionally accessed because the receiver can be 'null' THEN itemCount: snapshot.data!.documents.length, ERROR: The getter 'documents' isn't defined for the type 'Object' itemCount: snapshot.data?.documents.length, ERROR: The getter 'documents' isn't defined for the type 'Object' Any ideas? thanks a lot for your videos 15:40 min aprox
The method 'getImage' isn't defined for the type 'ImagePicker'. Try correcting the name to the name of an existing method, or defining a method named 'getImage'. how can I solve this ?
Hi there, i want to ask. is there a way that we upload the image download url that we've already upload it to firebase storage in a map/list format. so when we try to retrieve it. the data will retrieve every single doc only
Hi, I'm not sure if I'm late or not, but yes there is. instead of iterating it using for loop and put it all in to different data, you can just put the image link into a different list and put it into the database, I can show you the example if you want to, just reply and probably give me your stackoverflow socials or smthg
@@LazyTechNo this is what I got as message: The argument type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart)' can't be assigned to the parameter type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)'.
@@Junior-vm9sh The first File object -> The argument type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart)' comes from import 'dart:html'; while the second one -> the parameter type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)' is from import 'dart:io'; so they're different "types". Just make sure you're importing both files from the same library, then you'll be able to assign it
The method 'basename' isn't defined for the type 'Path'. Try correcting the name to the name of an existing method, or defining a method named 'basename'.dart(undefined_method)
I am getting this error when I am trying to import firebase storage dependencie. Can you please help me with it. [FlutterChatAppTutorial-master] flutter pub get Running "flutter pub get" in FlutterChatAppTutorial-master... Because chatapp depends on firebase_auth 0.15.4 which depends on firebase_core ^0.4.0, firebase_core ^0.4.0 is required. So, because chatapp depends on firebase_core ^0.5.2+1, version solving failed. pub get failed (1; So, because chatapp depends on firebase_core ^0.5.2+1, version solving failed.) exit code 1
Class 'QuerySnapshot' has no instance getter 'documents'. Receiver: Instance of 'QuerySnapshot' Tried calling: documents The relevant error-causing widget was StreamBuilder lib\displayimage.dart:24
@@someguy007 did not worked for me :( itemCount: snapshot.data.docs.length ERROR: The property 'docs' can't be unconditionally accessed because the receiver can be 'null' itemCount: snapshot.data!.docs.length, ERROR: The getter 'docs' isn't defined for the type 'Object' itemCount: snapshot.data?.docs.length, ERROR: The getter 'docs' isn't defined for the type 'Object' Any ideas?
Thank you for the tutorial but my app got crash when I tried to pick a second image. Do you have any idea on that? I haven't tried on Android yet but on IOS it doesn't seem to work out. Thanks in advance
You mean posting system that we have in other social media’s ? Where we select our image, write our text, and by clicking POST it will be uploaded in db ?
Ive seen the tutorial about the phone's camera taking a picture then upload to firebase then retrieve again in the app. My question is, is that possible to taking the picture using different camera (not the phone camera) ?
👉 Flutter Firebase Storage & Cloud Firestore: th-cam.com/video/5iVThTWQpPU/w-d-xo.html
Thanx for the tutorial....
But, how to make onTap which the image download ?
I Iike this video very much. Just 1 question. How can I see the full screen photo by clicking on it after showing it on home screen?
OnTap of image you can either create another screen and return full screen image or u can use full screen image package.
@@LazyTechNo Can you recommend any video about either of those?
@@섀플리 maybe this will help.
th-cam.com/video/X7ZdFlJgOnY/w-d-xo.html
Best Explanation ever bro.....
hi may I know how do you differenciate different path because when I choose the image each would be the same file name can you help me please thank you
In this case you can append something to your filename. i.e. timestamp is good option.
@@LazyTechNo can you give me an example cause I could see it yet thank you so much
@@haiqalhaziq12349 DateTime.now().millisecondsSinceEpoch;
@@LazyTechNo thank you do you know any way that I can extract the datetime from the image ?
Thank you so much, but I have an error in firebase storage can you help me, please?
it does not work and the loading sign does not go from the home page
firebase syntax is changed, please go through their documentation for updated ones.
@@LazyTechNo W/Firestore( 6542): (24.1.0) [Firestore]: Listen for Query(target=Query(imageURLs order by time, __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}, I got this error, I am new with programing can you please help me
@@LazyTechNo
the rules of my storage firebase:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read,write: if true;
}
}
}
So the files we'll upload will always have unique name no matter how many files are there in storage?
Yes
@@LazyTechNo thanks LazyTechNo you saved my day ❤️❤️❤️❤️
Thank you!! It helped me!
is anybody to help please??...method AddImage() isn't defined!!!..
Thanks for making this video it helped me a lot, how can I set the + (plus) icon, add a button to the right of the image which is at the last of the image not at the beginning, all the selected images should go to the last.
simply instead of "index == 0" you can do "index == _image.length" and "FileImage(_image[index])"
@@LazyTechNo Wow, it worked, thank you very much
How to add authentication system to allow only admin to upload image but can be seen by everyone.
How you create "snapshot.data.documents[index].get("url")"? Thanks!
Using stream builder
@@LazyTechNo Hello LazyTechNo I just tried to implement the Home but i get this errors, snapshot.data.documents.lenght:
itemCount: snapshot.data.documents.length ERROR: The property 'docs' can't be unconditionally accessed because the receiver can be 'null' THEN
itemCount: snapshot.data!.documents.length, ERROR: The getter 'documents' isn't defined for the type 'Object'
itemCount: snapshot.data?.documents.length, ERROR: The getter 'documents' isn't defined for the type 'Object'
Any ideas? thanks a lot for your videos
15:40 min aprox
The method 'getImage' isn't defined for the type 'ImagePicker'.
Try correcting the name to the name of an existing method, or defining a method named 'getImage'. how can I solve this ?
I found the answer to this, its to use pickImage instead of getImage
Cannot read property 'getImage' of null, this code shows me an error in flutter web.
When I try to click plus button to choose image in AddImage page the app crash. How can I fix it? p.s. IOS Simulator
This video is implemented for android, and for IOS you can Check the documentation of image picker
Amazing!
Thank you
Hi there, i want to ask. is there a way that we upload the image download url that we've already upload it to firebase storage in a map/list format. so when we try to retrieve it. the data will retrieve every single doc only
Hi, I'm not sure if I'm late or not, but yes there is. instead of iterating it using for loop and put it all in to different data, you can just put the image link into a different list and put it into the database, I can show you the example if you want to, just reply and probably give me your stackoverflow socials or smthg
when i open an image then go back to grid screen , list automatically goes to top of list
Why this happening ?
My _image(index-1) has a red line saying can’t be assigned to the parameter type ‘File(...)
Check your image file type.
@@LazyTechNo this is what I got as message: The argument type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart)' can't be assigned to the parameter type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)'.
@@Junior-vm9sh The first File object
-> The argument type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart)'
comes from import 'dart:html';
while the second one
-> the parameter type 'File (where File is defined in /Users/juniornziango/Developer/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)'
is from import 'dart:io';
so they're different "types". Just make sure you're importing both files from the same library, then you'll be able to assign it
@@ratiebareeng Thanks
Hello sir,
How to delete images in one by one
Hello! I was about to ask the same thing.. fingers crossed
Could you make video about the same upload image flutter with REST API?
I will consider it in future videos, not soon
good job + i want send url to firebase Realtime . how do that?
You mean you want to store image url to realtime database instead of cloud firestore ?
@@LazyTechNo yes.. I want set url in realtime
The method 'basename' isn't defined for the type 'Path'.
Try correcting the name to the name of an existing method, or defining a method named 'basename'.dart(undefined_method)
import 'package:path/path.dart' as Path;
good video
I am getting this error when I am trying to import firebase storage dependencie. Can you please help me with it.
[FlutterChatAppTutorial-master] flutter pub get
Running "flutter pub get" in FlutterChatAppTutorial-master...
Because chatapp depends on firebase_auth 0.15.4 which depends on firebase_core ^0.4.0, firebase_core ^0.4.0 is required.
So, because chatapp depends on firebase_core ^0.5.2+1, version solving failed.
pub get failed (1; So, because chatapp depends on firebase_core ^0.5.2+1, version solving failed.)
exit code 1
Try to use latest versions of firebase_auth, firebase_core and firebase_storage
@@LazyTechNo Still it is showing the same error.
Anything else that I can do?
Upgrade flutter to latest, do pub clean, restart ide.
@@LazyTechNo will try doing that too!
@@LazyTechNo I have upgraded flutter and also did above mentioned things but still it is showing the same error. Some other solution to it?
Class 'QuerySnapshot' has no instance getter 'documents'.
Receiver: Instance of 'QuerySnapshot'
Tried calling: documents
The relevant error-causing widget was
StreamBuilder
lib\displayimage.dart:24
'documents' has been deprecated. Change it to docs. It will solve the problem
@@someguy007 did not worked for me :(
itemCount: snapshot.data.docs.length ERROR: The property 'docs' can't be unconditionally accessed because the receiver can be 'null'
itemCount: snapshot.data!.docs.length, ERROR: The getter 'docs' isn't defined for the type 'Object'
itemCount: snapshot.data?.docs.length, ERROR: The getter 'docs' isn't defined for the type 'Object'
Any ideas?
Superb Video ... explained very much that we want ❤️ ... Problem solved 👍
The argument type 'String?' can't be assigned to the parameter type 'String'.
this error is coming
at _image.add(File(pickedFile?.path));
import the path library as Path and it will be resolved and also keep in mind to import dart.io not dart.html
@@devilzone47b remove the ? on the picked file and Add this !
Very good ✈️
Thank you 😀
Thank you very much bro❤️❤️
Thank you for the tutorial but my app got crash when I tried to pick a second image. Do you have any idea on that? I haven't tried on Android yet but on IOS it doesn't seem to work out. Thanks in advance
Can you post the error you got ?
@@LazyTechNo there was no error. It just showed “Lost connection to device” and Exited.
@@LazyTechNo just tested on android and it worked perfectly. Seems something is wrong with IOS 14.
Bro you didnt show firebase part ?
Please do a video on blog post where we can post multiple files and images in a single post
You mean posting system that we have in other social media’s ? Where we select our image, write our text, and by clicking POST it will be uploaded in db ?
@@LazyTechNo Yes that will be great
I will consider this in future videos, thank you for suggesting.
@@LazyTechNo Thank you. I am trying to make an app where teachers can send notes and assignments to students
Ive seen the tutorial about the phone's camera taking a picture then upload to firebase then retrieve again in the app. My question is, is that possible to taking the picture using different camera (not the phone camera) ?
image can't show on homescreen
great
Hi bro, itemCount: snapshot.data.documents.length, shows error now, please provide the updated code for that
I have the same problem, did yopu manage to fix it?
hey can u make a tutorial on how to retrieve videos from firebase into flutter project
can you give me source code?
picker.getImage() is not working
What did i did wrong ?
😭
I’m sure you created that function outside of the class. Check your curly braces. Make sure the function is within your class.
Source code
👌🇵🇰