Комментарии:
Where is i can download the app?
Ответитьvoid takephoto(ImageSource source)async{
final pickedFile=await picker.pickImage(
source:source,
);
setState(() {
_imagefile=pickedFile as PickedFile;
}); this my code
i get an error lateInitializatationError Filed _imagefile@27144298 has not been initialized , how it solve please help me sir
ОтветитьThat's how to teach thank u sir for such amazing and benifical video
Ответитьthanks
ОтветитьThe non-nullable local variable '_imageFile' must be assigned before it can be used.
Try giving it an initializer expression, or ensure that it's assigned on every execution
it is giving this error how to fix
How can we do with Camera plugin package?
ОтветитьThank you sir. for your video.
Ответитьis this emulator or you are using real device ???
ОтветитьCan u do this with null safety, please?
ОтветитьDude get a mic, i have to tur of captions to listen o what you are saying 😶
ОтветитьThanks a lot!!! it really helped me !
ОтветитьHi, thanks for the greate video.
I'm very new to flutter, was following your video and getting this error.
Any suggestions? Thanks in advance!
Code:
late PickedFile _imageFile;
....
backgroundImage: _imageFile == null
? AssetImage("lib/assets/profile.png")
: FileImage(File(_imageFile.path)),
.....
Error:
Try correcting the name to the name of an existing method, or defining a method named 'File'.
: FileImage(File(_imageFile.path)),
^^^^
lib/pages/ProfilePage.dart:149:15: Error: The argument type 'Object' can't be assigned to the parameter type
'ImageProvider<Object>?'.
- 'Object' is from 'dart:core'.
- 'ImageProvider' is from 'package:flutter/src/painting/image_provider.dart'
('/C:/Program%20Files/flutter/packages/flutter/lib/src/painting/image_provider.dart').
? AssetImage("lib/assets/profile.png")
hello nice work..
please solve my problem..
i am getting eroor here
CircleAvatar(
radius: 80.0,
backgroundImage:
_imageFile == null
? AssetImage("images/Logo.jpg")
: FileImage(File(_imageFile.path)),
),
_image file not defined error not nullable instant field
also cotext error as wll. it says undefined name
child: InkWell(
onTap: () {
showModalBottomSheet(
context: context,
builder: ((builder) => bottomSheet()),
);
Hi Dev, Thanks for your awesome video, Can I ask you why my code gives error,
CircleAvatar(
radius: 80.0,
backgroundImage: _imageFile == null
? AssetImage('images/aran.jpg')
: FileImage(File(_imageFile.path)),
),
exactly last 3 lines has error,
Thanks
Sir I get am error that getImage is undefined how should i resolve
ОтветитьThanks for the tutorial
I have an error in this line
backgroundImage: _imageFile==null? AssetImage("assets/profilphoto.png") :FileImage(File(_imageFile.path)),
The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>?'.
could someone help me please !!!
backgroundImage: _imageFile == null
? AssetImage("assets/blank.png")
: FileImage(File(_imageFile.path)),
This line is giving error please tell me how to solve it
great stuff
ОтветитьLove you Sir! I thought there is no FileImage in backgrounImage. Thanks for introducing me
Ответитьhow to validate profile pic if user not select profile image? a message should display "please select picture" how to to that validation
ОтветитьWhy im not able to import "dart:io"
While converting pickedimage type to file type
Pls Help!!!!!!!!!
thank you very much its very useful
Ответитьwhere is the link for the github repo for this ?
ОтветитьIs there any way to save the pic we selected as when I am starting my app again. It gets set to original state and not the one I selected
ОтветитьWow such a awesome video. U r such a great teacher. I understood the way u explained!! Plz dont change the way u make videos. Its just perfect !! Thankyou so much for making this video. I followed ur video from start to end. but I dont kno what did i miss out. when clicking on camera and gallery icon nothing is happening and no error is also shown. what to do? btw I have liked and subscribed ;)
ОтветитьCan you share the source code please..
ОтветитьI have a proble in line : File(imagefile.path) how solve it please?
Ответитьcan i get source code? plz
Ответитьthank you for making this good video
Ответитьgood work bro
ОтветитьThanks, But how can i add multiple image in form
Ответитьthanks again!
ОтветитьThank You!!!!
ОтветитьI LOVE YAAAAAAAA!!! THAAAAAAANKS!
ОтветитьHello man! Its best video - you are very cool !!!!)))) its works super!!!!
Ответитьwhen i m using form widget and the image picker i m not able to save the values of the textfield please resolve my problem SIR!!
ОтветитьCan you guys help me to get 3k please 🙏🙏🙏🙏
ОтветитьThanks
Ответитьyou should also show the imports also the setstate() was required to be defined as a separate function i think you missed it because is was producing as error in my code
ОтветитьBut when you build an APK the image picker doesn't work... Most of the time app doesn't open gallery or camera... In debug mode everything works fine...
Ответитьplease give me the code source
ОтветитьAwesome
Ответить