No video

Flutter Tutorial for Beginners #8 - Images & Assets

  Рет қаралды 592,484

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 236
@scotti3gt
@scotti3gt 2 жыл бұрын
Your style of teaching is amazing. So well planned and your story telling is on point. A big thank you!
@NetNinja
@NetNinja 2 жыл бұрын
Thank you for your support Scott :) means a lot!
@DonDada187
@DonDada187 Жыл бұрын
To be honest this was like my third day trying to understand Flutter and with this amazing instructor and his style of teaching. I understand everything. Thank you so much
@NetNinja
@NetNinja Жыл бұрын
Glad I could help Rusango!
@nishanthvm8552
@nishanthvm8552 3 жыл бұрын
For those who had isses with network image: Try this: inside your body property, Image.network(URL) Dont do like: image : network... kinda things This worked perfect for me
@user-ss2eo4hn6w
@user-ss2eo4hn6w 6 ай бұрын
You saved few hours for me, thanks!
@esirioneyibo
@esirioneyibo 4 жыл бұрын
Hello net Ninjas, I really love your teaching. You break it down to the minimum. Thanks for the good work.
@prodbyblvnk
@prodbyblvnk 4 жыл бұрын
if anyone's having problem with assets not wanting to load - try running "flutter clean" in the console and then launching the app again
@andressaszx
@andressaszx 4 жыл бұрын
Awesome!! Thank you!
@tirthshah2832
@tirthshah2832 4 жыл бұрын
Thanks bro.It works!
@theunknownguy7905
@theunknownguy7905 4 жыл бұрын
thnx its work
@turnerturnerphoto
@turnerturnerphoto 4 жыл бұрын
Must also restart the emulator (to get the image to load)
@varunpandey8117
@varunpandey8117 4 жыл бұрын
thank you, it worked for me
@damianwilk930
@damianwilk930 5 жыл бұрын
I'm so happy every time you upload a new Flutter video :-) I'm following your lessons and also building my own app on the side
@anedeji
@anedeji 3 жыл бұрын
Great teacher and great student
@tylerscreations928
@tylerscreations928 2 жыл бұрын
Thank you so much! I am a beginner and I am teching myself by building my own beginners static app. your tutorial was easy to follow but also explained to me a lot of features like Asset images and Network images. Thank you so much! you earned a like and a sub :)
@NetNinja
@NetNinja 2 жыл бұрын
Thanks for the kind words Tyler :) much appreciated!
@RuthKassahun
@RuthKassahun 4 жыл бұрын
So far everything is going smoothly. Thank you for all the explanations, it helps.
@thismakesnosense4815
@thismakesnosense4815 4 жыл бұрын
I like how you said so far. Also how's the whole flutter thing going seeing that you're one month ahead of me
@Prtk21
@Prtk21 2 жыл бұрын
@@thismakesnosense4815 How's the flutter thing going for you, seeing you're 1 yr ahead of me...
@thismakesnosense4815
@thismakesnosense4815 2 жыл бұрын
@@Prtk21 ditched flutter after tutorial #20 and did a little bit of web dev with react firebase :/
@Asithan476
@Asithan476 3 жыл бұрын
If you're using a physical mobile device to emulate, make sure you turn on mobile data
@reinal97
@reinal97 Жыл бұрын
I encountered issues with the hot reload feature as it was unable to locate the assets. Consequently, I had to restart the IDE each time I added new assets. To resolve this problem, I discovered a solution by right-clicking on the project name and selecting "Repair IDE." This workaround might be helpful for others experiencing a similar issue.
@paanoop
@paanoop 4 жыл бұрын
Thanks for the tutorials! Really helped me to get started.
@poupdujour
@poupdujour 4 жыл бұрын
You are a great instructor. Thanks for taking the time to do this.
@elmoatasemelkashef4398
@elmoatasemelkashef4398 8 ай бұрын
your way of teaching is great and very simple i really happy to discover your channel you deserve more alot as educator Thank you from here to the moon great job
@NetNinja
@NetNinja 8 ай бұрын
Thanks :) that means a lot
@amadakram5722
@amadakram5722 3 жыл бұрын
note: you have to enable internet connection on your device for image to be displayed.
@akshatbagdi3162
@akshatbagdi3162 3 жыл бұрын
hi amad how to do this
@amadakram5722
@amadakram5722 3 жыл бұрын
@@akshatbagdi3162 turn on wifi on your device(virtual or real)
@oxianoxi3031
@oxianoxi3031 3 жыл бұрын
True :)
@mcbrincie212
@mcbrincie212 2 жыл бұрын
Now thats some amazing teaching skills. The Video is well detailed and Planned out, it gives u a basic understanding of what things do and why they are used in a way that even a caveman can understand it. So Good
@NetNinja
@NetNinja 2 жыл бұрын
Thank you for the kind words :)
@WolfyMarcus
@WolfyMarcus 4 жыл бұрын
Thank you so much for the tutorials, really helped me as a beginner
@AhmedRashed669
@AhmedRashed669 Жыл бұрын
Thanks for the simplicity of the explaination
@NetNinja
@NetNinja Жыл бұрын
Thanks for watching Ahmed!
@Engkk
@Engkk 2 жыл бұрын
instead of typing the path, you can actually copy the path by right-clicking the image file, writing this as I have learned so many valuable tips in the comment section, share yours too if you have one.
@jeejeestudio1
@jeejeestudio1 3 жыл бұрын
Thanks for the clear explanations, even for non native english speakers good to follow.
@kahanx10
@kahanx10 2 жыл бұрын
Sometimes Flutter caches the app with the previously compiled version, so try to reopen it instead of hot restarting if your image doesn't show.
@ismailkoyuncu5518
@ismailkoyuncu5518 4 жыл бұрын
Thanks for the tutorials fundamentals ! Really helped me to get started.The Flutter FATHER. God bless you. Respects.
@hemant1772
@hemant1772 3 жыл бұрын
Thanks from my Heart for making these videos so simple and easy to understand .❤️
@mangeshsathe
@mangeshsathe 3 жыл бұрын
Thanks Ninja! these quick code snippet very much helping to get into Flutter...
@sadaqathussainawan7201
@sadaqathussainawan7201 2 жыл бұрын
Great Effort! Thank you for such a helpful tutorials
@Lensbreak
@Lensbreak 4 жыл бұрын
What size/dimension should the images have? nobody talk about this in any tutorial....
@howtotech3956
@howtotech3956 4 жыл бұрын
you can use any size of image and resize like this body: Center( child: Image( image: AssetImage('assets/images/weatherlogo.png'), height: 100, width: 100, ), ),
@user-lt6vf3qr8l
@user-lt6vf3qr8l 2 жыл бұрын
@@howtotech3956 Thank you
@jshanker2005
@jshanker2005 4 жыл бұрын
@The Net Ninja, Thanks for the wonderful tutorial. I learned so much !!
@NetNinja
@NetNinja 4 жыл бұрын
Glad it was helpful! :)
@abdelhadidellal3697
@abdelhadidellal3697 5 жыл бұрын
The best teacher ❤
@MarmureanuWeb
@MarmureanuWeb 4 жыл бұрын
Thanks for all the tutorials!!!! You rock!
@user-dh7wt3xm7p
@user-dh7wt3xm7p 7 ай бұрын
your content is amazing man
@ahmadsulaimon9502
@ahmadsulaimon9502 3 жыл бұрын
Jazakumllahu Khoiran Net Ninja😷
@user-rk5zz2id8l
@user-rk5zz2id8l 4 жыл бұрын
I didn't understand a lot from any other tutorials as I do with yours, you make it simple and much clear, Thank you a lot
@TheNamelessTO
@TheNamelessTO 3 жыл бұрын
I know this an old video and maybe things changed but I can't get the NetworkImage to work.. I get "Exception: Invalid image data". I would really appreciate a solution =)
@nibaroo9439
@nibaroo9439 3 жыл бұрын
Maybe the file is corrupted, you do not have necessary permissions or the link is invalid
@sakthiraja8517
@sakthiraja8517 2 жыл бұрын
I got you,.... U must have copied the "link address", but U must copy the "image address". use this image address, this will help you
@monkberrry
@monkberrry Жыл бұрын
Hi! I am able to load the images doing the image: AssetImage() way, but not the Image.asset() way. Have things changed maybe? Can't seem to find waht im looking for online
@ahmadalkordee5879
@ahmadalkordee5879 2 жыл бұрын
This tutorial is amazing ,, thank u very much brother .. :)
@gevor3338
@gevor3338 Жыл бұрын
youre actually goated i love u
@jarek8150
@jarek8150 2 жыл бұрын
If anyone's also having a problem with assets not wanting to load - you probably have to remove extra Spaces, because they are actually significant in an .yaml file
@swatik2509
@swatik2509 Жыл бұрын
Thanks sir! I will remember you forever
@luckytechpro9537
@luckytechpro9537 Жыл бұрын
hot reloading but unable to load images
@justsomeclips_
@justsomeclips_ Жыл бұрын
Thank you bro! Iitterally had one space and it wouldn't run anymore ...
@-zerenity-2322
@-zerenity-2322 2 жыл бұрын
Is there a noticable performance difference between loading images from a local folder rather than via a image link? :)
@user-gi9oj9iz5r
@user-gi9oj9iz5r 4 жыл бұрын
Great Video Ninja. Can you please make a tutorial for playing a video constantly on the homepage?
@coraleenamarie5869
@coraleenamarie5869 3 жыл бұрын
Awesome. Thank you!
@lalaboxer7606
@lalaboxer7606 3 жыл бұрын
fonts and images dont work why i checked every space in pubspec that i edited
@hassainehassen5700
@hassainehassen5700 4 жыл бұрын
Thank you , great tutorial
@robertnexus77
@robertnexus77 7 ай бұрын
thanks so much mate
@NetNinja
@NetNinja 7 ай бұрын
Thanks for watching! :)
@bensalemmohamed7510
@bensalemmohamed7510 4 жыл бұрын
how i resolve this problem I/flutter ( 3804): ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════ I/flutter ( 3804): The following assertion was thrown resolving an image codec: I/flutter ( 3804): Unable to load asset: assests/dob.jpg I/flutter ( 3804): When the exception was thrown, this was the stack: I/flutter ( 3804): #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7) I/flutter ( 3804): I/flutter ( 3804): #1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:484:44) I/flutter ( 3804): #2 AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:469:14) I/flutter ( 3804): #3 ImageProvider.resolve... (package:flutter/src/painting/image_provider.dart:327:17) I/flutter ( 3804): #4 ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:160:22) I/flutter ( 3804): #5 ImageProvider.resolve.. (package:flutter/src/painting/image_provider.dart:325:84) I/flutter ( 3804): (elided 13 frames from package dart:async) I/flutter ( 3804): Image provider: AssetImage(bundle: null, name: "assests/dob.jpg") I/flutter ( 3804): Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#7fbe8(), name: "assests/dob.jpg", scale: I/flutter ( 3804): 1.0) I/flutter ( 3804): ═════════════════════════════════════════════════════════════════════════════════════
@obong_samjoe
@obong_samjoe Жыл бұрын
Thanks man
@2chotti
@2chotti 11 ай бұрын
Thank you
@josbexerr5166
@josbexerr5166 4 жыл бұрын
Super tutorial....Gracias Mister Ninja
@aozdesigns6675
@aozdesigns6675 3 жыл бұрын
i am really very thankful
@nurialorente6198
@nurialorente6198 3 жыл бұрын
can't believe it!! doone it from my f***** own!! with your explenation, thnx!!!
@peterinvestor
@peterinvestor 2 жыл бұрын
So whats the use case for declaring every single image in pubspec? Are those images cached faster comparing to just declaring the location?
@bangxwazan9275
@bangxwazan9275 Жыл бұрын
Thanks a lot
@fatihislgan7437
@fatihislgan7437 2 жыл бұрын
thank you
@samsman007
@samsman007 3 жыл бұрын
Is there a way to create Assets/Icons , like what we used to do in Android, to create multiple resolution launcher icons?
@paisita92hd42
@paisita92hd42 Жыл бұрын
Loving your videos
@NetNinja
@NetNinja Жыл бұрын
Thanks! :)
@SajadVafa
@SajadVafa 2 ай бұрын
Good tutorials. Thanks. My android studio Editor doesn't show the Nest-like line (there is a 90 degree bend in line on the left, grouping each widget). Do you know how to activate that?
@fynn2356
@fynn2356 3 жыл бұрын
thanks bro big help
@TrungNguyen-iw8gb
@TrungNguyen-iw8gb Жыл бұрын
Many thanks for your very helpful tutorial. I have learnt a lot, but do not know if I have mistake: the hot reload did not work when I move the stateless class (Home) to a new file while it worked if the Main and Home class are in the same file. Do you have any ideas for that issue?
@DragonArchontol
@DragonArchontol 2 жыл бұрын
thankyou
@germancastaned1587
@germancastaned1587 2 жыл бұрын
Thanks a lot !!!
@pradeepguptadailyblaa
@pradeepguptadailyblaa 3 жыл бұрын
1:18 That's what she said!
@akishtp
@akishtp Жыл бұрын
for other youtube tutorials
@NetNinja
@NetNinja Жыл бұрын
Hope it was helpful Akish :)
@akishtp
@akishtp Жыл бұрын
@@NetNinja it definitely was. Thanks shaun 😁
@theanlaython3470
@theanlaython3470 3 жыл бұрын
hi, for me your video is helpful full and easy to understanding, but I have a question after I complected this course can you recommend the future course or advance courses of flutter.
@sparklyyy1083
@sparklyyy1083 3 жыл бұрын
Thanks
@letaciogalvao9908
@letaciogalvao9908 Жыл бұрын
Amazing
@mohammedelfatih8018
@mohammedelfatih8018 4 жыл бұрын
Thank u ninja
@ukani.trupal
@ukani.trupal 3 жыл бұрын
i put 6 images but shows only 3.. why? everything is fine in pubspec. i also tried flutter clean and restarting app. nothing works.
@everthinghereforfree
@everthinghereforfree Жыл бұрын
thanks
@NetNinja
@NetNinja Жыл бұрын
You're welcome!
@user-iw2md2gl4q
@user-iw2md2gl4q 3 жыл бұрын
I just wanted to say that you are so amazing. Thank you for what you do!
@mattprado21
@mattprado21 4 жыл бұрын
Which one is the standard or most of the developers preferred in getting assets?
@Musta_fa94
@Musta_fa94 2 жыл бұрын
thank u
@DanaKurdi
@DanaKurdi 4 жыл бұрын
Thank You .
@comeonletscook
@comeonletscook 3 жыл бұрын
Hey having trouble with loading Asset image. I have tried everything suggested in the post. If so many people are having issue, could there be an easier way? It would be helpful to know how many time while setting up demo did you have this same issue and how you solved it. And things to look out for. Thanks
@nurialorente6198
@nurialorente6198 3 жыл бұрын
i'm unable to load the asset done as u said, but ain't work, it blinks the emu but nothing appears ... can u help please?? Appears blank, and all the steps are good ,followed your instructions, many thnx! cleaned also , and nothing :(((( . It does work perfectly with the Network url but not the asset directory .... you explain awesome. Im spanish but I do understand u perfectly!! please could u be so kind to help??
@elijahloot
@elijahloot 2 жыл бұрын
Thankyou sir!!!!!!!
@user-ru6qo1vt7b
@user-ru6qo1vt7b 4 күн бұрын
assets or network image or font family it is not working in my flutter project. i need help. i'm using vs code.
@anantagarwal5147
@anantagarwal5147 3 жыл бұрын
NetworkImage works but the image doesnt load pls help The AssetImage works flawlesssly
@mehmetarslan2034
@mehmetarslan2034 4 жыл бұрын
An image asset can refer to one or more resolution-specific "variants", see │ ^ error why?
@nicolaspeterson9821
@nicolaspeterson9821 3 жыл бұрын
why do most of my images give me a typo error even though there isn't any typos at all?
@happyornot3847
@happyornot3847 2 жыл бұрын
what a wonderful men you are
@jfeteris
@jfeteris 3 жыл бұрын
First, assetImage didn't work for me. Then I ran flutter packages get in the Mac terminal in the directory of the project and then it worked!
@MdAkter-ln4vv
@MdAkter-ln4vv 2 жыл бұрын
GOOD job
@alisheykhlar6930
@alisheykhlar6930 Жыл бұрын
perfect
@peterinvestor
@peterinvestor 2 жыл бұрын
If i would use network image and i wouldnt be connected to internet or image would be not found whar would happen?
@mariammohamedsaad6513
@mariammohamedsaad6513 2 жыл бұрын
Could you please tell me if there is a way to read in map image details (nodes, distances,..) in flutter??
@qrisp504
@qrisp504 4 жыл бұрын
can we do same thing with fonts? like just writing fonts/ once rather than declaring all of them?
@marlonoliveira7835
@marlonoliveira7835 3 жыл бұрын
at 2:50 what was the shortcut used to remove the # from the puspec
@semuthitam2211
@semuthitam2211 2 жыл бұрын
I want to know why the host prefer choice flutter than kotlin tutorial .... thanks
@fabs-gk2ne
@fabs-gk2ne 4 жыл бұрын
NetworkImage() is not loading an image plz help
@abdullahsalih493
@abdullahsalih493 4 жыл бұрын
you must have internet connection.
@fabs-gk2ne
@fabs-gk2ne 4 жыл бұрын
@@abdullahsalih493 come on man i do have internet, but its not loading image
@abdullahsalih493
@abdullahsalih493 4 жыл бұрын
@@fabs-gk2ne I had the same problem, it was because internet connection, Because it needs to load it from the web, I don't know if there's another cause
@tharindu-k
@tharindu-k 4 жыл бұрын
You have to set the DNS in the network setting to 8.8.8.8
@bsanserful
@bsanserful 4 жыл бұрын
Not working for me either and I do have an internet connection.
@usamabaig3047
@usamabaig3047 4 жыл бұрын
Sir, i got a problem here which is "unable to load asset" kindly guid me about it
@ProfessorElectronic
@ProfessorElectronic 3 жыл бұрын
It could be indentation mistake. Try using TAB and SHIFT + TAB instead of adding spaces in order to line up the code.
@kyllecyrs04
@kyllecyrs04 Жыл бұрын
hey bro the add dependencies doesn't pop up in my screen how does that work? please help me.
@manojrayapudi5730
@manojrayapudi5730 2 жыл бұрын
What all we get in paid one. please can you explain
@legen_dary42
@legen_dary42 Жыл бұрын
They must have changed something again because using local images isn't working anymore.
@DeYiii
@DeYiii 4 жыл бұрын
Hello bro! Could you make a tutorial about converting svg image into png image in flutter please? It's because when I want to get images with different extension to display in listview.builder, it stopped at the time the image reach svg image.
@overnecros
@overnecros Жыл бұрын
is there any way to add assets like all .png files or the entire directory??? it seems kinda dumb declare one by one
@HelloUltraGamerz
@HelloUltraGamerz 3 жыл бұрын
i am using visual studio and i am facing problem loading the images
@ajaybeersinghsachdeva3746
@ajaybeersinghsachdeva3746 2 жыл бұрын
one more problem, in the project section, the myapp_android is opened and i cannot use the yaml files, can you give the solution for this please
@hrr597
@hrr597 Жыл бұрын
Thanks!
@onlypatel6705
@onlypatel6705 3 жыл бұрын
I am getting parameter format not correct error, but the app was working just fine few days back, please help me
@robertogomez9263
@robertogomez9263 4 жыл бұрын
Can anyone help me? I use my android phone to preview my apps but whenever I run my code it shows the example flutter app code until I hot restart it, only then does it show what my code is supposed to show.
@willemvanderplaat5920
@willemvanderplaat5920 3 жыл бұрын
Hi Shawn, I’ve just recently joined the Ninja gang. I have a question: I’m currently working in Flutter to develop an app in language learning. Previously, I had developed a similar app for Android in Android Studio. In that app I had buttons which when clicked would produce a local audio file in the form of a short spoken sentence. I would like to have a similarly functioning button in Flutter. I’ve been looking for quite a while now but without succes. I’m now looking for help. I would really appreciate some advice on this matter. Thanks.
@joeldong-joesuh7614
@joeldong-joesuh7614 3 жыл бұрын
Does anyone have this issue, where copying image address from google search and pasting it doesn't work(Image does not show). But copying it from website 'Unsplash' works.
Flutter Tutorial for Beginners #9 - Buttons & Icons
7:51
Net Ninja
Рет қаралды 464 М.
Flutter Basics by a REAL Project
25:42
Flutter Guys
Рет қаралды 456 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 23 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,2 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 72 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 18 МЛН
Flutter: How to Add Image in App - Complete Guide [Hindi]
10:17
WsCube Tech
Рет қаралды 100 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 310 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 150 М.
Flutter Basic Training - 12 Minute Bootcamp
12:09
Fireship
Рет қаралды 882 М.
Flutter Tutorial For Beginners In 1 Hour
1:00:00
Flutter Mapp
Рет қаралды 437 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
How to use TypeScript with React... But should you?
6:36
Fireship
Рет қаралды 920 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 23 МЛН