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

Поделиться
HTML-код
  • Опубликовано: 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

Комментарии • 210

  • @Romain_Girou
    @Romain_Girou  10 месяцев назад +24

    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 (ruclips.net/video/W6Vnv5kmzfk/видео.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 RUclips, including playback controls and the ability to play RUclips 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 ?

  • @Rishiplays777
    @Rishiplays777 3 дня назад

    Informative video. Thanks Romain.

  • @mahmutdawut6998
    @mahmutdawut6998 9 месяцев назад +7

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

  • @ahmedemam281
    @ahmedemam281 Месяц назад +1

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

  • @sonamohialdin3376
    @sonamohialdin3376 9 месяцев назад

    Very helpful tutorial thank you

  • @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 💪

  • @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

  • @cheswinraj9472
    @cheswinraj9472 6 месяцев назад

    thanks for the video

  • @MaxSeipio
    @MaxSeipio 10 месяцев назад

    Amazing 🔥

  • @user-fi6jp6pv9x
    @user-fi6jp6pv9x 10 месяцев назад

    wow
    exicted

  • @abodikheder3626
    @abodikheder3626 10 месяцев назад +2

    perfection

  • @MarceloSalasL
    @MarceloSalasL 10 месяцев назад

    I would love this example with clean architecture.

  • @dbtfitness8655
    @dbtfitness8655 10 месяцев назад +4

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

  • @AmanAgarwal-gv1il
    @AmanAgarwal-gv1il Месяц назад

    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'.

  • @vyshnavvijayan2287
    @vyshnavvijayan2287 10 месяцев назад +1

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

  • @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 !

  • @dgofurjanov
    @dgofurjanov 5 месяцев назад

    Good explanation 👍👍 subscribed

  • @joaofelipelima8598
    @joaofelipelima8598 10 месяцев назад

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

  • @Zerefse
    @Zerefse 7 месяцев назад

    thank bro

  • @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 !

  • @petervilson3357
    @petervilson3357 9 месяцев назад +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!

  • @silkcoder
    @silkcoder Месяц назад

    Thanks

  • @JevLogin
    @JevLogin 2 месяца назад +1

    cuteapp )

  •  9 месяцев назад

    Harika.

  • @LalitKumar-qv9xn
    @LalitKumar-qv9xn 7 месяцев назад

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

  • @peapuffer3514
    @peapuffer3514 10 месяцев назад

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

  • @jondoe79
    @jondoe79 10 месяцев назад

    Great tutorial, waiting for the clean app structure tutorial 👍

  • @elsamaniahmed2876
    @elsamaniahmed2876 10 месяцев назад

    Subscribed 😌🔥

  • @hendrigunawan5239
    @hendrigunawan5239 10 месяцев назад +1

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

  • @nengforgame8145
    @nengforgame8145 10 месяцев назад +1

    Subscribed

  • @szilardlang
    @szilardlang 7 месяцев назад +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  7 месяцев назад +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 7 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  7 месяцев назад +1

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

  • @SumitSS-t5s
    @SumitSS-t5s 21 день назад

    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

  • @saonsikder4622
    @saonsikder4622 10 месяцев назад

    Really Helpful
    Learnt a lot
    Thank You

  • @jamalkhan-my4tg
    @jamalkhan-my4tg 10 месяцев назад

    Awesome❤

  • @ComputerScienceTechworld
    @ComputerScienceTechworld 10 месяцев назад

    Wow your explanation is awesome 🔥

    • @Romain_Girou
      @Romain_Girou  10 месяцев назад

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

  • @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?

  • @rakshithgowda8782
    @rakshithgowda8782 10 месяцев назад +1

    Subscribed
    😍

  • @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 👌

  • @horizonchaser1280
    @horizonchaser1280 6 месяцев назад

    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  6 месяцев назад

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

    • @horizonchaser1280
      @horizonchaser1280 6 месяцев назад

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

  • @LalitKumar-qv9xn
    @LalitKumar-qv9xn 7 месяцев назад

    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  7 месяцев назад

      Already uploaded ! Check out the channel 😊

  • @MrIMacro
    @MrIMacro 3 месяца назад

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

  • @GlennMartin
    @GlennMartin 6 месяцев назад

    Great tutorial, the nesting in Flutter is crazy though.

    • @Romain_Girou
      @Romain_Girou  6 месяцев назад +1

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

    • @GlennMartin
      @GlennMartin 6 месяцев назад

      @@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.

  • @ShaunyTravels.
    @ShaunyTravels. 6 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  6 месяцев назад

      Yes that’s a nice idea 💡

  • @JEAN-PIERRERAPP
    @JEAN-PIERRERAPP 24 дня назад

    coooooooooooooooooooooooooooooooooooollllllll

  • @clovisstanford6515
    @clovisstanford6515 10 месяцев назад +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  10 месяцев назад

      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

  • @Ha-it-ha-99-99
    @Ha-it-ha-99-99 25 дней назад

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

  • @memaharashtrian_
    @memaharashtrian_ 6 месяцев назад

    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  6 месяцев назад

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

  • @Yadnesh_
    @Yadnesh_ 3 месяца назад

    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,

  • @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 😇

  • @Tyrone-Ward
    @Tyrone-Ward 19 дней назад

    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 😂

  • @mr.kashyapsandesh1084
    @mr.kashyapsandesh1084 10 месяцев назад

    make more small projects with bloc

  • @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

  • @nullcodeer
    @nullcodeer 10 месяцев назад +1

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

  • @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 !

  • @ARIFFOYSAL-nb6zr
    @ARIFFOYSAL-nb6zr 4 месяца назад

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

  • @keflat23
    @keflat23 5 месяцев назад

    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  5 месяцев назад +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

    • @keflat23
      @keflat23 5 месяцев назад

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

  • @from_whatch
    @from_whatch 10 месяцев назад

    sir pls make a flutter bloc beginner to advance tutorial

  • @victorzarzar2724
    @victorzarzar2724 6 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  6 месяцев назад

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

  • @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  8 месяцев назад

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

  • @clovisstanford6515
    @clovisstanford6515 10 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  10 месяцев назад +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.

  • @ahamedsuhails
    @ahamedsuhails 6 месяцев назад

    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  6 месяцев назад

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

    • @amitshibuk
      @amitshibuk Месяц назад

      @@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.

  • @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 🙏

  • @JevLogin
    @JevLogin 2 месяца назад

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

  • @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  4 месяца назад +1

      Hey there !
      Simply by calling the Bloc Event again

    • @RadityaRinandyaswara
      @RadityaRinandyaswara 4 месяца назад

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

    • @Romain_Girou
      @Romain_Girou  4 месяца назад

      Amazing, well done 👏

  • @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!

  • @theyouthmedia9451
    @theyouthmedia9451 4 месяца назад +2

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

  • @glionn
    @glionn 5 месяцев назад

    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

  • @sejal9773
    @sejal9773 10 месяцев назад +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  10 месяцев назад

      Do you have a github link ?

    • @jbxbmsd1453
      @jbxbmsd1453 10 месяцев назад +1

      @@Romain_Girou i have the same problem !!

    • @Romain_Girou
      @Romain_Girou  10 месяцев назад

      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.

  • @hackaholic01
    @hackaholic01 6 месяцев назад

    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  6 месяцев назад

      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 !

  • @nobody007
    @nobody007 10 месяцев назад +1

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

  • @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  4 месяца назад

      Perhaps you should replace the if statements by a switch

  • @juannavarrete2760
    @juannavarrete2760 10 месяцев назад +1

    where are the images that u use in the tutorial?

  • @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 !

  • @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

  • @sandeshverma214
    @sandeshverma214 8 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  8 месяцев назад

      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

  • @codeessentialske
    @codeessentialske 6 месяцев назад

    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  6 месяцев назад +1

      GitHub is in the pin comment !

    • @codeessentialske
      @codeessentialske 6 месяцев назад

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

  • @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

  • @uttamsharma921
    @uttamsharma921 25 дней назад

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

  • @cheswinraj9472
    @cheswinraj9472 6 месяцев назад

    how did you get the png ???

    • @Romain_Girou
      @Romain_Girou  6 месяцев назад

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

    • @cheswinraj9472
      @cheswinraj9472 6 месяцев назад

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

  • @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  8 месяцев назад

      You have to request you own from the weater API !

  • @shahzaibkhan9049
    @shahzaibkhan9049 10 месяцев назад

    Sir please different apps develop with provider or firebase or API

  • @shailjaiswal-fd1xy
    @shailjaiswal-fd1xy 6 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  6 месяцев назад

      Well feel free to improve it !

    • @shailjaiswal-fd1xy
      @shailjaiswal-fd1xy 6 месяцев назад

      @@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  6 месяцев назад

      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 6 месяцев назад

      Ok thanks will try to implement this

    • @shailjaiswal-fd1xy
      @shailjaiswal-fd1xy 6 месяцев назад

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

  • @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.

  • @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 ?

  • @mohammed_abdulqader505
    @mohammed_abdulqader505 5 месяцев назад

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

  • @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 👍

  • @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 😁

  • @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  6 месяцев назад

      Check the GitHub !

  • @bhavinkuriya3000
    @bhavinkuriya3000 10 месяцев назад

    How can i get api key can you please tell us

    • @Romain_Girou
      @Romain_Girou  10 месяцев назад

      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

  • @ibrohimjonodilov1924
    @ibrohimjonodilov1924 7 месяцев назад

    Romain come on mate give us api that u used

    • @Romain_Girou
      @Romain_Girou  7 месяцев назад

      It’s all in the video ☺️

  • @YI3Q
    @YI3Q 10 месяцев назад

    🫡

  • @CodeX-xyxy
    @CodeX-xyxy 24 дня назад

    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  24 дня назад

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

  • @umutcanargun5108
    @umutcanargun5108 8 месяцев назад

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

    • @Romain_Girou
      @Romain_Girou  8 месяцев назад +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 😌🔥