Weather App • FLUTTER - BLOC & API Tutorial for Beginners 🔥

Поділитися
Вставка
  • Опубліковано 19 вер 2023
  • In this tutorial, you'll learn how to create a simple Weather App in Flutter. In this app, I have shown you how to request the weather data from an API according to your location and display it on the screen.
    We use BLoC in order to keep this simple App well structured.
    I hope you enjoy !!!
    Subscribe to my channel: / @romain_girou

КОМЕНТАРІ • 209

  • @Romain_Girou
    @Romain_Girou  10 місяців тому +21

    Don't forget to subscribe if you liked the video !
    Here is the GitHub of the project :
    github.com/romain-girou/weather_app_youtube

    • @juannavarrete2760
      @juannavarrete2760 10 місяців тому +1

      I am subscribed from the TODO App, you do it very well, I am sure you will be a great channel, something I would like to see is an app that is a little more real, and with clean architecture, with firebase that would be great

    • @Romain_Girou
      @Romain_Girou  10 місяців тому

      I've done an entire perhaps you've seen it (ua-cam.com/video/W6Vnv5kmzfk/v-deo.html) What kind of App you'd like to see ? A social media, chat, ... ?

    • @juannavarrete2760
      @juannavarrete2760 10 місяців тому

      @@Romain_Girou a social media

    • @littlepakistani8179
      @littlepakistani8179 10 місяців тому

      Thank you, Romain, for creating such a fantastic video! I stumbled upon your content and couldn't resist watching it. I was genuinely impressed and, as a result, I've become a subscriber to your channel. I have high hopes that you'll continue delivering excellent content in the future.
      I have a request for you that I hope you can consider. Could you possibly create tutorials on the following three topics?
      Ensuring App Responsiveness: I'm interested in learning how to make an app adapt seamlessly to various mobile devices and tablets, regardless of their screen size.
      Live Location Tracking with Google Maps: It would be incredibly helpful if you could provide guidance on implementing live location tracking similar to what we see in apps like Food Panda, where customers can track the delivery rider's location in real-time.
      High-Quality Video Player: Lastly, I'd love to see a tutorial on building a video player with features akin to UA-cam, including playback controls and the ability to play UA-cam videos within the app, complete with quality control options.
      Your expertise would be greatly appreciated in these areas, and I believe many of your subscribers would find these tutorials incredibly valuable. Thank you in advance for considering my request!

    • @moonlight_350
      @moonlight_350 9 місяців тому

      you don't format your code ?

  • @mahmutdawut6998
    @mahmutdawut6998 9 місяців тому +5

    Beautiful UI and great lesson for beginner. Wishing to see more content like this.

  • @ahmedemam281
    @ahmedemam281 26 днів тому

    I love the way you explain and the trial and error it's super amusing Keep it Up Brother !

  • @MaxSeipio
    @MaxSeipio 9 місяців тому

    Amazing 🔥

  • @sonamohialdin3376
    @sonamohialdin3376 8 місяців тому

    Very helpful tutorial thank you

  • @dgofurjanov
    @dgofurjanov 4 місяці тому

    Good explanation 👍👍 subscribed

  • @cheswinraj9472
    @cheswinraj9472 5 місяців тому

    thanks for the video

  • @viethuyho7122
    @viethuyho7122 10 місяців тому +1

    Thank you for your valuable Flutter content. Keep it up, Romain.👏👏👏

  • @my_wave_app
    @my_wave_app Місяць тому

    thanks for this video it really helped me to build my mobile app, which is now live! it has been few days only but this video was very helpful!
    API was a bit trickier but could make it work :) cheers

  • @AmanAgarwal-gv1il
    @AmanAgarwal-gv1il 27 днів тому

    great video loved it and also I have added a feature in which if the time is between sunrise and 12 noon its gonna say 'Good Morning' and if time is between 12 noon and 4 pm its gonna say 'Good Afternoon' and if the time is between 4pm and sunset its gonna say 'Good Evening' and after that 'Good Night'.

  • @user-fi6jp6pv9x
    @user-fi6jp6pv9x 10 місяців тому

    wow
    exicted

  • @jeromemf
    @jeromemf 10 місяців тому +6

    After watching another video of yours I already liked the way you explain and present your content.
    After this video I subscribed to your channel. Nice work Romain!

    • @Romain_Girou
      @Romain_Girou  10 місяців тому +1

      Thanks a lot ! I'll keep on delivering 💪

  • @dbtfitness8655
    @dbtfitness8655 10 місяців тому +4

    Sir please make a complete project with bloc , really appreciate your teaching, thankyou very much ❤

  • @ahmadnorin
    @ahmadnorin 5 місяців тому

    Create background with froze glass effect is outstanding.. the way you created it is stunning.. your explanation also is very clear.. thank you..

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Thank you so much 🙏 you made my day !

  • @adcodage3095
    @adcodage3095 6 місяців тому

    Awesome vid ! Thank you very much for that nice course ! Gonna help me make my app

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      I’m glad you liked it ! Don’t hesitate to check out other videos if you need more and good luck with your app !

  • @vyshnavvijayan2287
    @vyshnavvijayan2287 9 місяців тому +1

    Waiting to see that clean app structure, as a beginner in flutter it will help me a lot

  • @elsamaniahmed2876
    @elsamaniahmed2876 10 місяців тому

    Subscribed 😌🔥

  • @petervilson3357
    @petervilson3357 8 місяців тому +2

    Awesome video! Thank You! :) However, building this with cubit, dio and freezed for json deseralization would be a gem!
    Thank You again and looking forward for Your next video!

  • @MarceloSalasL
    @MarceloSalasL 10 місяців тому

    I would love this example with clean architecture.

  • @joaofelipelima8598
    @joaofelipelima8598 9 місяців тому

    Thanks for this video. It helped improve my knowledge of flutter!

  • @LalitKumar-qv9xn
    @LalitKumar-qv9xn 6 місяців тому

    yes sir please make videos on how to structure your code and project

  • @abodikheder3626
    @abodikheder3626 10 місяців тому +2

    perfection

  • @SumitSS-t5s
    @SumitSS-t5s 6 днів тому

    nice explain. love from India bro. please make a app with lots of navigation. with bloc navigation becomes problem for many of us. like auto navigation and state updates. timer functions. web socket

  • @jondoe79
    @jondoe79 9 місяців тому

    Great tutorial, waiting for the clean app structure tutorial 👍

  • @silkcoder
    @silkcoder 17 днів тому

    Thanks

  • @ComputerScienceTechworld
    @ComputerScienceTechworld 10 місяців тому

    Wow your explanation is awesome 🔥

    • @Romain_Girou
      @Romain_Girou  10 місяців тому

      Thanks a lot for saying it ! That goes a long way 🔥

  • @peapuffer3514
    @peapuffer3514 10 місяців тому

    Video on app structure please. Thanks for the video. Subscribed.

  • @nengforgame8145
    @nengforgame8145 10 місяців тому +1

    Subscribed

  • @hendrigunawan5239
    @hendrigunawan5239 9 місяців тому +1

    thanks for sharing this..., its really helpfull for beginners like me.

  • @Zerefse
    @Zerefse 6 місяців тому

    thank bro

  • @JevLogin
    @JevLogin 2 місяці тому +1

    cuteapp )

  • @jamalkhan-my4tg
    @jamalkhan-my4tg 9 місяців тому

    Awesome❤

  • @saonsikder4622
    @saonsikder4622 9 місяців тому

    Really Helpful
    Learnt a lot
    Thank You

  • @szilardlang
    @szilardlang 6 місяців тому +1

    I'm learning Flutter and Dart on my own for a couple of weeks now, but never found a video or online lesson that explains the coding and the logic as greatly as you! You, sir, just gained a new subscriber, I'm gonna start your To-Do app next week! 😊
    Also I had an idea: at the end of the video, maybe we could use the "Icon" column from the "Weather condition codes" page as well?

    • @Romain_Girou
      @Romain_Girou  6 місяців тому +1

      That is very nice of you to say and it goes a long way, Thanks 🙏
      Yes of course you can and you should if you want to push to app !

    • @szilardlang
      @szilardlang 6 місяців тому

      @@Romain_Girou Thank you so much, I'm gonna give it a try. 😍

    • @Romain_Girou
      @Romain_Girou  6 місяців тому +1

      Best of luck ! Don’t hesitate if you’re struggling

  • @MrIMacro
    @MrIMacro 2 місяці тому

    Thanks, what if i want to show the user the movement of the raining clouds on the map. Could you please show us how?

  • @rakshithgowda8782
    @rakshithgowda8782 10 місяців тому +1

    Subscribed
    😍

  • @jakubopieka8107
    @jakubopieka8107 3 місяці тому

    Hi, thank you for the tutorial with clear explanation, do you use windows? How did u manage to emulate IOS on windows?

  •  9 місяців тому

    Harika.

  • @s0mczyq
    @s0mczyq 10 місяців тому

    next tut would love to see ecommerce with firebase bloc stripe :)

    • @Romain_Girou
      @Romain_Girou  10 місяців тому

      Yes good idea ! I plan to start a serie where I create a SAAS business using flutter and bringing you guys along 👌

  • @LalitKumar-qv9xn
    @LalitKumar-qv9xn 6 місяців тому

    yes sir please make videos on how to structure your code and project and also explain how to fellow clean architecture

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      Already uploaded ! Check out the channel 😊

  • @Ha-it-ha-99-99
    @Ha-it-ha-99-99 10 днів тому

    hi , i can use the images of your app for construct my app or not. Thanks

  • @ShaunyTravels.
    @ShaunyTravels. 5 місяців тому

    Just found the channel love it !!! Can you do a small sample stockmarket app with api ?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Yes that’s a nice idea 💡

  • @horizonchaser1280
    @horizonchaser1280 5 місяців тому

    I want to add a bit where you can edit it more to make it more combust : Do change the "Good Morning" text by comparing it with the current time. Its a small tweak but perfection is what everyone desires for. Kudos to everyone and Romain you too!
    Subscribed to you and will following you for some more contents.

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Love the dedication and attention to details ! That’s the way to go

    • @horizonchaser1280
      @horizonchaser1280 5 місяців тому

      @@Romain_Girou All thanks to you sir!
      Pretty compact and smooth tutorial.

  • @GlennMartin
    @GlennMartin 5 місяців тому

    Great tutorial, the nesting in Flutter is crazy though.

    • @Romain_Girou
      @Romain_Girou  5 місяців тому +1

      Thanks !
      Yes it is but you can manage it very nicely with a good separation for each widget

    • @GlennMartin
      @GlennMartin 5 місяців тому

      @@Romain_Girou I'll watch your clean coding video, hopefully it's there, be good to know when and how much to break up too.

  • @JEAN-PIERRERAPP
    @JEAN-PIERRERAPP 9 днів тому

    coooooooooooooooooooooooooooooooooooollllllll

  • @Yadnesh_
    @Yadnesh_ 2 місяці тому

    Sir when i build the apk and try to run in my real Android phone it gives error state , and when i run in my Android studio emulator it runs,and also when i connect my real device to Android studio it runs perfect. Why this happens,

  • @delmontee
    @delmontee 5 місяців тому

    Great video, thanks. But what was the point of using an event in this case? Wouldn't a cubit have been better? I'm still trying to work out when an event would be beneficial

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Thanks !
      Yes in theory cubit are for « eventless » actions like requesting the weather data and bloc when the user actually interacts with the app like when a button is pressed

  • @clovisstanford6515
    @clovisstanford6515 9 місяців тому +4

    The switch case expression type 'bool' must be a subtype of the switch expression type . The error is " >= 600 && 700". In every case it showing this error. But I used if else statements and solved it .

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      Fair enough with an if else statement ! Perhaps they changed something in the API or I didn't cover a type of weather that you are experiencing !

  • @bufloks893
    @bufloks893 10 місяців тому +1

    i hope this tutorial is full not cutted im new subscriber here

  • @narutaim
    @narutaim 8 місяців тому

    Hello Romain and thanks for this great tutorial, I've encountered a problem in this part of the video 41:00 it tells me that the method _determinePosition isnt defined for the type MyApp, I can't seem to find any fix for that

    • @Romain_Girou
      @Romain_Girou  7 місяців тому

      Weird.. did you tried to relaunch the App completely ? Go check the GitHub to see if you didn’t miss anything !

  • @memaharashtrian_
    @memaharashtrian_ 5 місяців тому

    Very beautiful ❤️ thanks for the video ✨
    Will you make one more with login screen where user having different scopes for loging in like student login scope and teacher login scope in single login button? I am working on it currently 😅 trying with single button and with bloc

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Thanks 🙏
      Yes that could be a cool video to go through all logins possibly !

  • @DURGHAM6
    @DURGHAM6 6 місяців тому

    amazing keep up the amazing work man do you teach I will gladly perches your course

    • @Romain_Girou
      @Romain_Girou  6 місяців тому +1

      Thank you man !
      I’m in the process of creating one but I want it to be amazing and bring you real value so it’s gonna take a bit of time 😇

  • @keflatspiral4633
    @keflatspiral4633 4 місяці тому

    Thanks for this pearl of knowledge!!
    What about if Geolocator shows up a wrong location example: San francisco(US) instead the correct location? while all the other informations are correct

    • @Romain_Girou
      @Romain_Girou  4 місяці тому +1

      You are very welcome !
      It’s the location of your emulator that’s why it’s SF instead of the place you’re really at, change it in the settings

    • @keflatspiral4633
      @keflatspiral4633 4 місяці тому

      @@Romain_Girou thanks a lot! Looking forward for new content! This channel deserves 100k subs!! 🫶

  • @ghulammurtaza7959
    @ghulammurtaza7959 6 місяців тому

    just like this we need complete apps with bloC and clean architecture

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      You have other tutorials on the channel if you need !

  • @victorzarzar2724
    @victorzarzar2724 5 місяців тому

    Hi, Thank you, What is the name of the vs code extension that shows the name and colors?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Well you have a few of them but I'm using at the moment only "bloc", "flutter" and "dart".

  • @ARIFFOYSAL-nb6zr
    @ARIFFOYSAL-nb6zr 3 місяці тому

    what is the extension name that you have used to see the image in the vscode

  • @clovisstanford6515
    @clovisstanford6515 9 місяців тому

    I have a question how do you get the constant colors, like the source
    of the specific colors

    • @Romain_Girou
      @Romain_Girou  9 місяців тому +1

      Hello there !
      Well you can get the codes in many ways using Canva, or other website that will give you the Hex code for the color you are looking for.

  • @from_whatch
    @from_whatch 10 місяців тому

    sir pls make a flutter bloc beginner to advance tutorial

  • @JevLogin
    @JevLogin 2 місяці тому

    такое ощцщение, что это видео из прошлого ))

  • @willsantos3284
    @willsantos3284 5 місяців тому

    Sir, I appreciated the way you explain things, I'm new to flutter and learning from you. I have a question: I can't run the app with geolocator package added, I think it is conflicting with another package, any idea to fix that or another package to get geolocation?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      hmm conflicts are always a pain... Perhaps try a pub upgrade and otherwise look carefully at the output message, it will tell you which package as a conflict and what version it should be in

    • @willsantos3284
      @willsantos3284 5 місяців тому

      @@Romain_Girou tks for you reply, I did it, I fixed the conflict and everything is working fine. keep it up bro, you're doing a nice job.

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Perfect 👌
      I will thanks 🙏

  • @afradahsan3514
    @afradahsan3514 5 місяців тому

    Thank you, Romain! Such a great tutorial.
    But, in the package, there is an option for five-day weather forecast, when i try do that, it is throwing some error. and when i tried logging, there is actually no weather-related data, only the city name, and the latitude and longitude.
    Do you know whether the package is limited to only use the current weather or is five day forecast available?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому +1

      You are very welcome !
      Yes perhaps the package has some errors into it I don't really know and I could tell you for sure.
      What I know is that you can try to fetch weather data from an api directly. Perhaps that something I could do as a small part 2 ?

    • @afradahsan3514
      @afradahsan3514 5 місяців тому

      @@Romain_Girou yeah same, I'm also thinking to use the api directly, working on another project rn, so thought of implementing the easy way using the package. 😅🤛

    • @Romain_Girou
      @Romain_Girou  5 місяців тому +1

      I understand ! Well feel free if you have time to do it to create a branch in the GitHub if you do it before me 👌
      Good day 🔥

  • @RadityaRinandyaswara
    @RadityaRinandyaswara 4 місяці тому

    Hey, thanks for the tutorial, i have a question, if I put some button to refresh the data, how to call the API again ?

    • @Romain_Girou
      @Romain_Girou  3 місяці тому +1

      Hey there !
      Simply by calling the Bloc Event again

    • @RadityaRinandyaswara
      @RadityaRinandyaswara 3 місяці тому

      @@Romain_Girou took me a while to figure out how to call it again, but it works now, thanks!

    • @Romain_Girou
      @Romain_Girou  3 місяці тому

      Amazing, well done 👏

  • @mr.kashyapsandesh1084
    @mr.kashyapsandesh1084 10 місяців тому

    make more small projects with bloc

  • @Tyrone-Ward
    @Tyrone-Ward 5 днів тому

    10 seconds into the video: "please like the video of you like the content"... bro you haven't even given us content to like yet IT'S 10 SECONDS INTO THE VIDEO 😂

  • @ahamedsuhails
    @ahamedsuhails 5 місяців тому

    18:14 deepPurple circles are aligned exactly in the center for me (not getting the mirror effect for the values (AlignmentDirectional(-3, -0.3), AlignmentDirectional(3, -0.3))). I'm using an android emulator. What am I doing wrong here?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Perhaps you forgot the blur effect under all those widget ? Checkout the Github and compare, good luck !

    • @amitshibuk
      @amitshibuk 19 днів тому

      @@Romain_Girou even i had the same error on android emulator, the way i fixed it was by adjust the padding in EdgeInsets.fromLTRB, changed L AND R from 40 to 10.
      I'm not sure if this will be an issue later as I've only completed 20% of the tutorial. Will update this if I find any issues.

  • @ashfaqueshaikh4177
    @ashfaqueshaikh4177 7 місяців тому +1

    i want more icons like fog, haze but i didn't find any free icon how can i get icons like yours

    • @ashfaqueshaikh4177
      @ashfaqueshaikh4177 7 місяців тому

      ooh, actually u have already provided it. so thank you!

  • @glionn
    @glionn 4 місяці тому

    can I use provider instead of bloc usually everyone uses bloc but I don't understand why

    • @Romain_Girou
      @Romain_Girou  4 місяці тому +1

      Of course you can ! Those state management system are just more advanced

  • @hackaholic01
    @hackaholic01 5 місяців тому

    Hey it's a good tutorial, I want to know one thing how to get hold of these widgets, there are too many widgets and attributes, and I am Mostly struggling with which one will do what and when to use, any help will be appreciated

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Yes I can imagine .. it’s a practice thing ! The more you’re gonna develop the better you will get selecting widgets and the most important ones will come more often !

  • @nullcodeer
    @nullcodeer 10 місяців тому +1

    thanks ...........a lot
    google map with flutter

  • @071-ramprasathvk9
    @071-ramprasathvk9 4 місяці тому +1

    Awesome UI..Perfect Teaching but for me idk why the code is working fine in my android emulator but its not working in real device like i found the issue is in if-else..for me if(state is WeatherBlocSuccess) is not running..else part is working in phone. I checked by providing a colour in a container at else part

    • @071-ramprasathvk9
      @071-ramprasathvk9 4 місяці тому

      And i added all the neccessary parts for androidmanifest files....Is i need to few min to get data or anything else..
      and your video is really helpful for my project but i stucked bw this

    • @Romain_Girou
      @Romain_Girou  3 місяці тому

      Perhaps you should replace the if statements by a switch

  • @uttamsharma921
    @uttamsharma921 11 днів тому

    How to get such images for different weather conditions for free?????

  • @nobody007
    @nobody007 10 місяців тому +1

    Could you pease make a complete guide video on bloc beginer to advance

  • @sejal9773
    @sejal9773 9 місяців тому +2

    I'm on the end part almost done but the app just keeps loading ig it is entering the else part of the 'main.dart' code.
    I checked the entire code there are no errors and i have provided Api key and everything.
    Could you please tell why this would be happening.
    Thankyou for this amazing video!!

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      Do you have a github link ?

    • @jbxbmsd1453
      @jbxbmsd1453 9 місяців тому +1

      @@Romain_Girou i have the same problem !!

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      I think the problem is in the switch statement, I'll fix it but you can replace it with an if else statement and that should fix it

    • @priyashaghosh822
      @priyashaghosh822 6 місяців тому

      @@Romain_Girou I am facing the same issue. The app is loading only.

  • @sandeshverma214
    @sandeshverma214 7 місяців тому

    app keeps on loading and the all of the code is correct ?? any fixes urgent

    • @Romain_Girou
      @Romain_Girou  7 місяців тому

      If the Apps keeps on loading it's because perhaps the switch statement for code weather code is not valid. Replace it with an if statement

  • @juannavarrete2760
    @juannavarrete2760 10 місяців тому +1

    Could you share the code repository please?, I can't find similar weather icons

    • @Romain_Girou
      @Romain_Girou  10 місяців тому +1

      Yes incoming !

    • @juannavarrete2760
      @juannavarrete2760 10 місяців тому

      ​@@Romain_GirouThank you! I appreciate your way to explain

    • @Romain_Girou
      @Romain_Girou  10 місяців тому +1

      I am very glad to hear it, it goes a long way 😊
      Github link is in the pin comment 👌 Good luck in your learning journey !

  • @juannavarrete2760
    @juannavarrete2760 10 місяців тому +1

    where are the images that u use in the tutorial?

  • @anandkrishna926
    @anandkrishna926 9 місяців тому

    We want same with using http or Dio package please, it will be useful for other projects with APIs. Thank you.

    • @Romain_Girou
      @Romain_Girou  9 місяців тому +1

      Will do ! Thanks for your feedback and there are some other videos like this on my channel you should go check them out 🔥

    • @anandkrishna926
      @anandkrishna926 9 місяців тому

      @@Romain_Girou Also I need to know how to manage multiple API endpoints in same project and call those api and feed them in same UI. Thanks.

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      Give me some examples of API calls you're looking for and I'll make a video !

    • @anandkrishna926
      @anandkrishna926 9 місяців тому

      @@Romain_Girou OpenWeatherMap API dosen't provide specific location names it provides an area name I know weather is based on an area but I want to show specific area name using Reverse Geocoding API by locationiq and Altitude(Elevation) from open-elevation can you please make a video including this API? you can also upgrade the same project using these APIs and not using Weather package. using http or Dio pacakage. Thank you.

    • @Romain_Girou
      @Romain_Girou  9 місяців тому +1

      yep noted ! Will come soon. I'll make a v2 of this video with http or Dio and pointing out as well precise location

  • @theyouthmedia9451
    @theyouthmedia9451 3 місяці тому +2

    Those who wants Part 2 ------------------------>

  • @shailjaiswal-fd1xy
    @shailjaiswal-fd1xy 5 місяців тому

    What we display when there is night because it's displaying sun image which is not appropriate

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Well feel free to improve it !

    • @shailjaiswal-fd1xy
      @shailjaiswal-fd1xy 5 місяців тому

      @@Romain_Girou Sir i am not getting any idea to implement moon image could u please suggest me how to do that because in night the sun image is not looking appropriate.

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Well you get the time of the phone and if the time is between 7am-7pm you display the sun image and if between 7pm-7am then the moon image or something like this

    • @shailjaiswal-fd1xy
      @shailjaiswal-fd1xy 5 місяців тому

      Ok thanks will try to implement this

    • @shailjaiswal-fd1xy
      @shailjaiswal-fd1xy 5 місяців тому

      It worked perfectly thanks a lot sir. I also added some animation from rive. ❤️

  • @mikeyparker8207
    @mikeyparker8207 6 місяців тому

    I tried to build the APK and it gets stucks on loading any idea why? IT works find in the emulator

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      Perhaps have something to do with the login ? Did you logout before building the apk ?
      Otherwise could be the location package not right initialise, on android you also need to do some stuff to make it work

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      Or it’s the switch statement for the weather code that’s not right

    • @mikeyparker8207
      @mikeyparker8207 6 місяців тому

      @@Romain_Girou Im assuming the switch statment is right as it works fine on the emulator and im still logged in on the emulator. Every works fine on the android emulator. just not the built APK

    • @mikeyparker8207
      @mikeyparker8207 6 місяців тому

      @@Romain_Girou got it working added to the manafestio

  • @codeessentialske
    @codeessentialske 5 місяців тому

    Nice Video. You didn't include any link to the github, or assets. I was following along and realized I can't continue because I have no assets. Kindly would you like to include the link perhaps where we can download the assets if not necessarily github?

    • @Romain_Girou
      @Romain_Girou  5 місяців тому +1

      GitHub is in the pin comment !

    • @codeessentialske
      @codeessentialske 5 місяців тому

      Ooooh Sorry, I didn't see 😂 Thanks I can now continue @@Romain_Girou

  • @aswinmanmathans6837
    @aswinmanmathans6837 Місяць тому

    Please watchout for latest issue with the geolocator package, the app wont run without the latest Kotlin, and if Kotlin is the latest version, geolocator won't work . I tried every possible resolutions in the universe, I 'm quitting this project.

    • @NaveenG777
      @NaveenG777 Місяць тому

      change the kotlin version to new version in your gradil file

    • @aswinmanmathans6837
      @aswinmanmathans6837 Місяць тому

      @@NaveenG777 i tried that too, but it also return
      error , when i commented out the geolocator dependency, the error disappeared.

  • @mohammed_abdulqader505
    @mohammed_abdulqader505 5 місяців тому

    Can we have this sorce code in github ..? ❤

  • @KeerthivasanS-
    @KeerthivasanS- 6 місяців тому

    SIr there is no API key for free ,Is it possible any website to get api key for free

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      Yes there is no ? They removed it ?

  • @moazibrahim5384
    @moazibrahim5384 8 місяців тому

    thanks, but how can I get an API key to make the app work?

    • @sarveshyadav6175
      @sarveshyadav6175 8 місяців тому

      U can use free random APIs or if u know backend u can make them urselves

    • @moazibrahim5384
      @moazibrahim5384 8 місяців тому

      so what do you use in this project?
      @@sarveshyadav6175

    • @Romain_Girou
      @Romain_Girou  7 місяців тому

      You have to request you own from the weater API !

  • @shahzaibkhan9049
    @shahzaibkhan9049 10 місяців тому

    Sir please different apps develop with provider or firebase or API

  • @cheswinraj9472
    @cheswinraj9472 5 місяців тому

    how did you get the png ???

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      I’ve created them !
      You can find some online for sure

    • @cheswinraj9472
      @cheswinraj9472 5 місяців тому

      @@Romain_Girou Image.network("openweathermap.org/img/wn/${state.weather.weatherIcon}@4x.png")
      add this i saw in some other video

  • @fashmuyhee
    @fashmuyhee 9 місяців тому

    I'm an absolute beginner can I watch this ?

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      I mean of course you can ! But if you have no coding experience I'm afraid it's gonna br a bit hard to understand

    • @fashmuyhee
      @fashmuyhee 9 місяців тому

      @@Romain_Girou thanks 👍

  • @bhavinkuriya3000
    @bhavinkuriya3000 9 місяців тому

    How can i get api key can you please tell us

    • @Romain_Girou
      @Romain_Girou  9 місяців тому

      You just create an account on the website and then in your profile your will find a spot where you can generate and see your API Keys

  • @gamingwithflames
    @gamingwithflames 7 місяців тому

    The app is getting stuck at loading screen.

    • @gamingwithflames
      @gamingwithflames 7 місяців тому

      I also tried changing switch block with if else but still the app isn't loading

    • @Romain_Girou
      @Romain_Girou  5 місяців тому

      Check the GitHub !

  • @vasanth6801
    @vasanth6801 9 місяців тому +1

    Sir, you forgot to change the good morning text

    • @Romain_Girou
      @Romain_Girou  9 місяців тому +1

      Indeed but I think you can figure this one out on your own using DateTime.now() and accessing the current hour of the day 😁

  • @ibrohimjonodilov1924
    @ibrohimjonodilov1924 6 місяців тому

    Romain come on mate give us api that u used

    • @Romain_Girou
      @Romain_Girou  6 місяців тому

      It’s all in the video ☺️

  • @YI3Q
    @YI3Q 9 місяців тому

    🫡

  • @CodeX-xyxy
    @CodeX-xyxy 10 днів тому

    WARNING !!!: saving API_KEY in application one of the dumbest thing you can do in mobile development. bad actor literally can take that key from application very easily and can use for specific purpose.
    How we can use api key safely?:
    basically you need a backend web server to handle api requests to weather api then your bacend will return response to your mobile client.

    • @Romain_Girou
      @Romain_Girou  10 днів тому

      That is very right !
      (That was not a real life project architecture this)
      Thanks for the comment

  • @umutcanargun5108
    @umutcanargun5108 7 місяців тому

    Excellent video sir. I have a question too: can we fetch data from an api without a package like 'weather'?

    • @Romain_Girou
      @Romain_Girou  7 місяців тому +1

      Thanks !
      Of course you can, I'll make a video showing how to connect direct with http to an API

  • @kan15hka
    @kan15hka 6 місяців тому

    The following Widget method can be added to provide a dynamic greeting
    Widget dayGreeting() {
    var style = const TextStyle(fontSize: 27.5, fontWeight: FontWeight.bold);
    var hour = DateTime.now().hour;
    if (hour < 12 && hour > 3) {
    return Text(
    'Good Morning',
    style: style,
    );
    } else if (hour < 16) {
    return Text(
    'Good Afternoon',
    style: style,
    );
    } else if (hour < 21) {
    return Text(
    'Good Evening',
    style: style,
    );
    } else {
    return Text(
    'Good Night',
    style: style,
    );
    }
    }

    • @Romain_Girou
      @Romain_Girou  6 місяців тому +1

      Well that’s some good work ! Thanks 🙏

    • @kan15hka
      @kan15hka 6 місяців тому

      @@Romain_GirouYou did a great work sir... Keep inspiring us...

  • @elsamaniahmed2876
    @elsamaniahmed2876 10 місяців тому

    Subscribed 😌🔥