Flutter Tutorial for Beginners #4 - Creating a Flutter App in Android Studio

Sdílet
Vložit
  • čas přidán 4. 06. 2024
  • Hey gang, in this Flutter tutorial we'll take a look at how to set up a Flutter app in Android Studio, as well as how to install an Android virtual device to test our Flutter apps on.
    ----------------------------------------
    🐱‍💻 🐱‍💻 Course Links:
    Course files - github.com/iamshaunjp/flutter...
    Android Studio - developer.android.com/studio
    Git - git-scm.com/downloads
    Flutter Installation - flutter.dev/docs/get-started/...
    🐱‍💻 🐱‍💻 Other Related Courses:
    + Modern JavaScript Tutorial - www.udemy.com/modern-javascri...

Komentáře • 492

  • @jackkrauser1371
    @jackkrauser1371 Před 6 měsíci +32

    For those who can't open the project without Dart Language:
    Before you click on create a new app, there is a button in the current version with the Flutter Icon.
    1.- Click on Flutter Button.
    2.- Where it says "Flutter SDK Pack". You'll put the path of your Flutter Folder, it should be like: C:\User\Rest_of_your_Path\flutter (Just find the folder and copy it)
    3.- Click on next
    4.- Where it says "Platform" choose whatever you wanna choose (It says android, iOS, Linux, MacOs, Web, Windows)
    5.- Finish
    That's all.

    • @crux6744
      @crux6744 Před 6 měsíci +1

      Omg i dont know how to thank you, tried so long now and this helped me. Thank you so much

    • @jackkrauser1371
      @jackkrauser1371 Před 6 měsíci

      @@crux6744 You're welcome brother!

    • @praveensagar72
      @praveensagar72 Před 4 měsíci

      since flutter 3 is already here so will it it be okay to learn this version 1.7 first. i am so cnfused can you please help

    • @roshdyessam3480
      @roshdyessam3480 Před 4 měsíci +1

      thanks a ton man, I've been trying to figure out why it generates only java files

  • @illusionhex1200
    @illusionhex1200 Před rokem +44

    This is how the courses for intermediate programmers should be, great work.

  • @liamsmith-yp3xh
    @liamsmith-yp3xh Před 4 lety +48

    ... as someone who tried to just get react native running for about a week and a bit.. this is instantly 100 times more pain free..

  • @damianwilk930
    @damianwilk930 Před 4 lety +21

    Yaaay, thank you Shaun! It's so exciting to follow this series

  • @ibbixyzzy7604
    @ibbixyzzy7604 Před 10 měsíci +3

    12:43 I was trying to figure out which cross-platform SDK I should start with, and this four-line "hello world" (or rather "hey ninjas!") did it for me. Thank you so much for making this example so simple.

  • @fatimakhalid6856
    @fatimakhalid6856 Před 3 lety +17

    Your background is so cool :D! i really appreciate the way you make us understand flutter so easily
    your an amazing teachers thumbs up to you man! :D

  • @zahrahosseini7713
    @zahrahosseini7713 Před 4 lety +12

    Hi! i watched 12 videos from 37. they were perfect and the best. a big thanks to you and hope you the best

    • @NetNinja
      @NetNinja  Před 4 lety +4

      Watch the rest :p haha, thanks :))

  • @Slacker4o
    @Slacker4o Před 3 lety +6

    Well done, mate! Quality teaching!

  • @webdev4786
    @webdev4786 Před 4 lety +2

    you really are helping thousands if not millions my bro... big up for ya self.

  • @destro5990
    @destro5990 Před rokem +8

    amazing how clear and organized your explaination is

    • @NetNinja
      @NetNinja  Před rokem +1

      Thanks Destro, hope it was helpful :)

  • @musagul
    @musagul Před 3 lety +3

    Hello Sir, Your explanation and this tutorial is totally "a good thing" for humanity. Thank you!

  • @DDLYkitten
    @DDLYkitten Před 3 měsíci

    I always find your vidoes when I'm trying to study, I finally found the will to subscribe!!!

  • @newbreaker0403
    @newbreaker0403 Před 2 lety +6

    I am watching this video on 2021 and is still very useful :)
    In order to make it work the virtual device, you need to activate the Windows Hyper Platform on Control Panel --> Programs and futures --> Turn Windows feautures on or off

  • @shubhamgupta-to7so
    @shubhamgupta-to7so Před 4 lety +1

    Awesome tutorial. Thank you Shaun.

  • @MarmureanuWeb
    @MarmureanuWeb Před 4 lety +1

    You explain very very well! Thanks!

  • @rsruo8331
    @rsruo8331 Před 4 lety +41

    13:27 it should be hot restart ,you will have error by hot reload

    • @adammahmoud7959
      @adammahmoud7959 Před 4 lety +3

      thanks was searching for this!

    • @nnaemekachimezie1356
      @nnaemekachimezie1356 Před 4 lety

      Mine says my virtual device isn't applicable for the main.dart configuration any help would be appreciated.

    • @ektakumari3082
      @ektakumari3082 Před 4 lety +1

      Man you solved a problem that was actually so depressing, Thanks a lot.
      Love from India.

    • @sabiqt00
      @sabiqt00 Před 3 lety

      thanks mate

  • @hk20092009able
    @hk20092009able Před 3 lety

    Perfect learn easy language clear view ... thanks , a lot of thank to your courses

  • @sergiomedina5520
    @sergiomedina5520 Před 4 lety +2

    Thanks a lot sir! You helped me a lot!

  • @RAZR_Channel
    @RAZR_Channel Před 2 lety

    Very well spoken and to the points... (unlike other tubers that are still beating viewers to death with constant CTA)

  • @shubr2003
    @shubr2003 Před 6 měsíci

    bro love that you go in-depth on the explaining

    • @NetNinja
      @NetNinja  Před 6 měsíci

      Appreciate it! :) thanks

  • @hupa1a
    @hupa1a Před 4 lety

    Thank you for this nice course!!

  • @abs1596
    @abs1596 Před 4 lety

    Hi Shaun, am happy i found your tutorial and Started learning Flutter, In my scenario just installing the flutter and dart then restart Android Studio doesn't worked, but with installing the Android APK Support and Android NDK support worked for me. Just want to address this issue which i faced.Started your next tutorial.Thanks

  • @ayushjindal123
    @ayushjindal123 Před 3 lety

    Thank you for the wonderful course and you have explained in such a nice work❤❤💖💖

  • @vishnuvardhanmalepati7843

    I had the same expression seeing the default code in the main.dart "Hmmm... This doesn't look simple :P ". Btw, The way you explain is so good .. Thank you :)

  • @amanihrd7609
    @amanihrd7609 Před 3 lety

    you make learning so fun thank u Ninja

  • @mobaidiobaidi8644
    @mobaidiobaidi8644 Před 3 lety

    This tutorial is totally amazing 👍🏼👍🏼

  • @jimvideotv
    @jimvideotv Před 4 lety +2

    Great videos. I have Windows 10 Home, AMD Ryzen 7 3700X, and use Hyper-V for device emulation. Maybe Sean can make, or link to, a video to set this up.

  • @dev.shafkhan
    @dev.shafkhan Před 4 lety +1

    Thanks so much for your work!

  • @rogerflatt8054
    @rogerflatt8054 Před 4 lety +18

    Loving your work, Sean - hugely appreciated. Flutter looks like webdev is finally getting there. (Perl CGI is a while ago now ...)
    Catching up with this series in Jan/Feb 2020 and I think a few things may have subtly changed already.
    I had licencing issues on Android Studio startup which were resolved with :
    "flutter doctor --android-licenses"
    (I replied "y" to a series of 'accept' messages (6?) which seemed to do the trick.
    The Nexus 5 emulator wouldn't get past the black screen, which seemed to get cured by turning on the Cold Boot option in advanced settings.
    Thanks again, and good luck.

  • @sankoproduction2389
    @sankoproduction2389 Před 4 lety

    love your background 💙

  • @sonamrinchen8566
    @sonamrinchen8566 Před 3 lety

    Thank you for this Wonderful video!!

  • @stillmattwest
    @stillmattwest Před 5 měsíci

    It's fun doing this course at the end of 2023 with my Mac Studio rendering about 10x faster than Net Ninja's PC.
    All kidding aside, this is a great course.

  • @irocx8745
    @irocx8745 Před 4 lety

    Great tutorial for beginners on Flutter #100/100

  • @jacobgasser3093
    @jacobgasser3093 Před 4 lety +6

    Love that wallpaper

  • @harryflim
    @harryflim Před 4 lety +22

    Any plans on making data structure and algorithm playlist?

  • @nellietobey5494
    @nellietobey5494 Před 4 lety +11

    For those receiving a multiple key error when running the last minute piece of code, here is the fix, I don't know why a comma missing would cause this error, but I'd love to find out:
    void main() => runApp(MaterialApp(home:
    Text('Hello'),
    ),
    );
    Thanks for the tutorials!!

  • @cipriancristian9933
    @cipriancristian9933 Před 4 lety +3

    the net ninja + the new boston =

  • @JagSan.
    @JagSan. Před 4 lety

    Awesome! Thanks!

  • @rogiergorter6214
    @rogiergorter6214 Před 4 lety

    I have a AMD Ryzen so i needed to do a view changes, but for now it looks like the FloatingActionButton works smoothly. Thanks a lot.

    • @colbykapalka7895
      @colbykapalka7895 Před 3 lety

      i also have a ryzen and im getting an error everytime i try to launch the emulator, it says i need to manually download the drivers

    • @rogiergorter6214
      @rogiergorter6214 Před 3 lety

      ​@@colbykapalka7895 Download in your SDK manager (Tools-SDK-manager -Systems-Android SDK-SDK Tools) the Hypervisor Driver for AMD processors.

  • @vjrn9945
    @vjrn9945 Před 4 lety +39

    anyone here after mike made his video on making his own app

  • @rizwansayyed5043
    @rizwansayyed5043 Před 4 lety

    lovely explanation

  • @masterofchallenge6438

    Amazing course, thank you!

    • @NetNinja
      @NetNinja  Před rokem

      You're very welcome! Hope it was useful.

  • @prashantio
    @prashantio Před rokem

    Even a 37 hour tutorial did not cover the basics as explained here. Cheers!

  • @karunsomasundarm9900
    @karunsomasundarm9900 Před 3 lety

    Very Well explained Thank You
    ..❤❤❤

  • @Mirtguitar
    @Mirtguitar Před 7 měsíci +5

    Everything was great until i found out the changes across versions was too high. Good totorial anyway.

  • @assmafdh6985
    @assmafdh6985 Před 2 lety

    you're really so good ,thanks

  • @vzelenko
    @vzelenko Před rokem +1

    Beginners, no need to test your code. Fascinating 😂. Great tutorial so far!!

  • @EmreYavuzalp
    @EmreYavuzalp Před 3 lety

    Very clean English, thanks maaate

  • @MrRynRules
    @MrRynRules Před 4 lety

    Thank You!

  • @cindybienetre
    @cindybienetre Před 2 lety +3

    Ah merci ! Moi qui voulait recommencer à coder, j'ai voulu lancer mon application sur Android Studio et j'ai un peu galéré à retrouver comment faire. Très bien expliqué !

  • @bts-nw5bi
    @bts-nw5bi Před rokem

    I really like your explanation

  • @sheldonxu635
    @sheldonxu635 Před rokem

    i like the way you teach!!!!!

  • @bhavnasoni9148
    @bhavnasoni9148 Před 3 lety

    Ohh that wallpaper ❤💕

  • @pixelsmile8934
    @pixelsmile8934 Před 4 lety

    Do you plan to organise intermediate classes ?
    Your class is really great!

  • @blueRusCamel
    @blueRusCamel Před 2 lety

    Thank you for making it so simple: two line code for 'hello ninjas'.

  • @aisha_ab88
    @aisha_ab88 Před 2 lety

    Yaaay, big like thank you so much ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

  • @hm9825
    @hm9825 Před rokem

    excellent ur videos are so easy to follow mate

    • @NetNinja
      @NetNinja  Před rokem +1

      Thanks HM, glad you think so!

  • @tortysoft
    @tortysoft Před 2 lety +3

    This is rather confusing to follow using the 2022 Android Studio, but if you look hard enough you can make it work.

    • @SepiaMN
      @SepiaMN Před 2 lety

      I never got to the same point as running the demo app. I don’t suppose you could explain what you did?

    • @tortysoft
      @tortysoft Před 2 lety

      @@SepiaMN Terribly sorry. I have Long Covid. I can't remember my name half the time. I'd have to totally repeat the process to get any sort of answer. Sorry.

  • @xamarinmaster1403
    @xamarinmaster1403 Před 11 měsíci

    I am a long time Xamarin developer (as you can tell from my username) and have always wanted the opportunity to deploy to the web. Flutter allows that so I am seriously considering switching.

  • @mrzak7850
    @mrzak7850 Před 4 lety

    thats amazing

  • @rajansingla5516
    @rajansingla5516 Před 4 lety +1

    Hello, thanks for this great video,,,,, how can I run this app on iOS simulator using android studio in windows ??

  • @phanciarsompod9452
    @phanciarsompod9452 Před 2 lety

    Nice tutorial sir. keep it up

  • @mvs69
    @mvs69 Před 2 lety +4

    which android/ios language should be chosen in newest Android studio, in order to continue this course?

  • @reinerheiner1148
    @reinerheiner1148 Před 10 měsíci +1

    Thanks for the series! One question - in your gui, the vertical indent guide is highlighted / changes color when you select code within it. additionally, there is a horizontal line where the vertical indent guide ends. How did you do this? It really helps with reading code. I searched everywhere, but I cannot get it to set to be interactive and the same style like it is in your editor. EDIT: found it. if the project does not recognize the flutter sdk, this happens. I had to set the projects flutter path manually. Keeping the comment up in case someone else has the same problem.

  • @letaciogalvao9908
    @letaciogalvao9908 Před rokem

    Awsome, thankss

  • @armaghanrasheed680
    @armaghanrasheed680 Před 3 lety

    hey sean, whats your system specification at time of recording this series

  • @rajshreegavel5966
    @rajshreegavel5966 Před 3 lety +2

    Thank you so much for this amazing video, but it is taking an extremely long time to run my application for the first time. Why is it so?

  • @genos2719
    @genos2719 Před 3 lety

    nice... well done

  • @MlkBnh
    @MlkBnh Před 8 dny +1

    i'm using Vscode with flutter and dart extention , so should i watch your tutorials !!!

  • @monishp168
    @monishp168 Před 2 lety

    Thank you.❤❤❤❤

  • @emanuelameh5722
    @emanuelameh5722 Před 3 lety +5

    Thanks for these videos! My Android Studio looks totally different from yours and it makes it extremely difficult for me to follow along.

  • @fouried96
    @fouried96 Před rokem +1

    I am trying to import the material package but it says the URI does not exist, how do I fix this? Thanks

  • @automatedrecruiter_email1665

    Hey Sean, do you have a paypal or something? I would really like to make a one time donation but I'm not a fan of the whole patreon subscription schema

    • @NetNinja
      @NetNinja  Před 4 lety +50

      Hey Zain, thank you so much, my paypal is www.paypal.me/thenetninja

    • @jeez123
      @jeez123 Před 3 lety

      @Boston Mendonca What is your GPU and how did you update it?

    • @jeez123
      @jeez123 Před 3 lety

      @Boston Mendonca device manager is not always updated with the newest drivers. Try other methods. I am using gtx1050 and I update my drivers through nvidia geforce

    • @badanimereviews4576
      @badanimereviews4576 Před 3 lety

      @Boston Mendonca just go on the intel website and download it from there.

    • @jimmyroxko771
      @jimmyroxko771 Před 3 lety +1

      @Boston Mendonca sometimes it takes a bit time,
      If it takes a really long time get out of the emulator then retry

  • @Laurenan69
    @Laurenan69 Před rokem

    That moment after 500 flutter tutorials when he deletes everything and you realize finally someone actually going to explain something.

  • @DIVATABARAK
    @DIVATABARAK Před 2 lety

    Alot of thanks

  • @prashantxxrawat
    @prashantxxrawat Před 3 lety

    Hey there, nice tutorial lessons.. easy to understand. But I'm having a problem , i'm seeing some red color folders in the project view, and after a lot of searching what they are I found out that they are excluded directories, of which you can enable/disable visibility from settings in "project pallete". So what are "Excluded Directories" actually ? Can we just delete them ?? @TheNetNinja

  • @waleedalkathiri8564
    @waleedalkathiri8564 Před 3 lety

    That issssss amazing 👍🏽👍🏽👍🏽👍🏽👍🏽

  • @manjunathpatil2489
    @manjunathpatil2489 Před 4 lety

    hey GOOD course bro

  • @PlancyOnlineEducationMyanmar

    Amazing

  • @morphx666
    @morphx666 Před 4 lety +2

    Hi... loving these tutorials. One question: what option or plugin do I need to enable the vertical guide lines that group functions' bodies?

    • @amarabdi4752
      @amarabdi4752 Před 3 lety

      did you get the answer to this?

    • @morphx666
      @morphx666 Před 3 lety +1

      @@amarabdi4752 Unfortunately I did not; however I was able to enable those lines... somehow...
      But try this, got to File->Settings, then navigate to Editor->Color Scheme->General. Look under "Guides" and see if changing/enabled the colors for the "iindent guide" works.

    • @thecoolnewsguy
      @thecoolnewsguy Před rokem

      ​@@amarabdi4752I got it by installing flutter plugin

  • @andythedishwasher1117
    @andythedishwasher1117 Před 2 lety +5

    My "new flutter project" page looked significantly different from yours in this video. Has there been an update that changed the whole format of that process?

    • @saeedrastegar9436
      @saeedrastegar9436 Před 2 lety

      Andy, can you help me plz. i got the same page like you... if you find the problem

    • @andythedishwasher1117
      @andythedishwasher1117 Před 2 lety

      @@saeedrastegar9436 It does look different now due to an update, but all the functionality is basically the same. I think there are just a couple things you no longer have to specify.

    • @andythedishwasher1117
      @andythedishwasher1117 Před 2 lety

      To be honest, while I love Net Ninja's courses and teaching style, I've found it difficult to follow his flutter courses since the framework has changed so much since they were written. I'd love to see an update

  • @halokart.official
    @halokart.official Před 3 lety +3

    Thank you for these lessons! They're a great help! Stuck a little though...
    After creating the AVD Device, it is not showing up in dropdown.
    When I open AVD manager, the device is present but when I run it, it shows error "Unable to locate adb" (and device opens up).
    I checked StackOverflow for this but the solution they gave (reg. platform-tools) is not working either. Any suggestions? Thanks!

    • @halokart.official
      @halokart.official Před 3 lety +1

      @h Like my comment so someone might reply. I'm still stuck!

    • @halokart.official
      @halokart.official Před 3 lety +1

      ​@isd I solved this issue by following and with the help of this video:
      czcams.com/video/U4TJ5ITGe5Y/video.html
      You may need to do a lot of terminal/cmd prompt work. Take the help of this video and stackoverflow/google as you work on it.

    • @Samuel-ns5jb
      @Samuel-ns5jb Před rokem

      Do you have the solution?

  • @arenddejong6609
    @arenddejong6609 Před 4 lety

    take this dude set this dude XD

  • @aasdasffdf
    @aasdasffdf Před 3 lety

    Thx a lot

  • @ibrahimalbrkat1765
    @ibrahimalbrkat1765 Před měsícem

    me and my dad always watch ur tutorials since Laravel website days

    • @NetNinja
      @NetNinja  Před měsícem

      Awesome! :) say hi to your Dad for me.

    • @ibrahimalbrkat1765
      @ibrahimalbrkat1765 Před měsícem

      @@NetNinja thanks for the replay, and my dad says hello

  • @alenabulgazin6398
    @alenabulgazin6398 Před 3 lety

    Hi and many thanks for this great course! However I couldn't activate emulator it freezes on the download step, I searched and couldn't find this error on google, hey guys can you give me some pointers please?

  • @pradeepkumar-tm5et
    @pradeepkumar-tm5et Před 4 lety

    Hi dude your videos are awesome, can you share your wallpaper I am very fond of that.

  • @shahzebzia4172
    @shahzebzia4172 Před 2 měsíci

    Hello Sir
    I follow up the same steps as yours but there is android studio 3.1 version downloaded which is very different from yours one, so what should i do now?

  • @gautampramod1734
    @gautampramod1734 Před 4 lety +2

    sir.. do we need java jdk before installing android studio? I tried without it.. And i could not run the main.dart program. it shows me an error..I followed ur all instructions.. I am loving ur tutorial.. plz help me..

  • @bennguyen1313
    @bennguyen1313 Před 4 lety

    Nick Manning suggests, rather than the default boilerplate, instead always start with a 3-file setup:
    main.dart:
    import 'app.dart';
    main() {
    runApp( App() );
    }
    App.dart:
    import 'home.dart';
    class App extends StatelessWidget {
    @override
    Widget build (BuildContext context) {
    return MaterialApp ( home: Home() ); // MaterialApp widget
    }
    }
    Home.dart
    class Home extends StatelessWidget {
    @override
    Widget build (BuildContext context) {
    return Scaffold {
    ... appbar , body ...
    }
    }

  • @DenienTV
    @DenienTV Před 4 lety

    For peoplw having gradle task assemble problems, go to *user*/AppData/Local/Android/Sdk/platforms and delete all folders inside (into the bin, don't clear it cause you'll need them later). Try to run the code on the emulator again, but it won't let you. Now restore the folder/folders from the recycle bin, maybe restart Android Studio and hopefully it will run without errors. I know this doesn't make sense but somehow it worked for me (someone advised to delete the folders, I did it but it still wouldn't run so I restored them and it worked)

  • @h.r.hbrandont8369
    @h.r.hbrandont8369 Před 3 lety

    Hello is there a link to the background picture on your computer ?

  • @techgamer-zj9dh
    @techgamer-zj9dh Před 4 lety

    can u access virtual device if i haven't enabled vt-x in BIOS

  • @lukeoverthere2637
    @lukeoverthere2637 Před 4 lety

    Go on !

  • @mithuns8410
    @mithuns8410 Před 4 lety

    Hey ninja, could you please add a tutorial for how to cache network data in flutter

  • @jerome8660
    @jerome8660 Před 4 lety +1

    I have an AMD processor and not Intel, so it is not possible to create an emulator?

  • @myataungmoe7465
    @myataungmoe7465 Před 4 lety

    I cannot install HAXM to my laptop , my laptop is Windows 10 HOME which doesn't support Hyper-V feature so what should I do for Virtual Device in Android Studio ? Please Help Me

  • @didierleprince6106
    @didierleprince6106 Před rokem

    A huge Merci (:

  • @GaLzZy.
    @GaLzZy. Před 3 lety +1

    Can you just take whatever app you made for Android in Android Studio and build it in Xcode to make it an iOS app? Thanks

  • @hamakhdir3144
    @hamakhdir3144 Před 3 lety

    In the previews lesson you told us : the void function does not return anything! but here the void main function return runApp(myApp()) ?
    please tell me why? thanks