This helps me so much for learning flutter. I already started to learn flutter 2-4 months ago and now I am exercising code and saw this video. IT'S FKING AWSOMEEE WİTH EXPLANATİONS. Keep going dude.
At the start it was nice and calm fetching apis are pretty clear but dont know what are u doing with json continuesly creating classes and factory constructor :(
Hello! First of all thanks for the video, it helped me to understand better flutter and how the widgets work. I have a question, I followed your instruction to get the name of the city, but from the logs and the terminal it prints the error: "Error: Unexpected null value." I even tried to print the list but same results. But the API (I used the same as yours) is correctly returning the latitude and the longitude. Any advice or solution?
Thank you very much for the tutorial! but why is it that when I run the project it always fails and points to the getAddress line at file header_widget.dart an there is no error description. I try to run your source code but it has the same problem. How can I fix that problem? I have no idea.
Fantastic video!!! It helped me so much. Is there a way to update the data every 10-15 minutes maybe using a timer or something else? Last thing, maybe a video with permissions request with dialog when it they are refused (like android rationale) can be nice (using permissions_handler, app_settings or similar)
First of all thank you so much for being the part of our Patreon community. I was super happy to see you supporting the channel and those small contributions help in growth of this channel. I will be adding a last updated and reload button to the app where we can reload and get the data. Also for the request dialog, will see the packages that I can use
Sorry i just forgot about that. I am sharing my whatsapp number with you on patreon message chat. We can disucss more on the weather app features on whatsapp
At 44:24, You added a city = place.locality!; and then you restart the app and it shows you location ..... but in my case when i reload my app, it pop-ups 2 tab in vs-code that are binding.dart and plugin_registry.dart. In binding.dart, on line no. 359, it says "completer.complete(reply);" where the text cursor blinks between completer and (.) & in plugin_registry, on line no. 126, it says " callback(response);" where the cursor blinks in front of callback. What is the problem ? I am confused why i am getting these pop-ups while i debug.
Hi thanks for awesome tutorial! I got an error "latitude is out of range of [-90.000000, 90.000000] (too low)" and don't know how to fix it. can anyone help me?
awesome tutorial. Thanks a lot. but my initState() function for getting the placemark is called before the globallController retrive the location data data. the placemark function is not waiting for the Globalcontroller to load. how to solve this
what if the location service is not enabled in mobile device.It Keeps on going circular progess indicator and error shows on the debug console on pc.Is there not the way to make popup on the app showing that location service is not enabled in the device?
Is this possible in flutter which can download the video from server and store it in SD card. and plays it while the app is in offline mode. Like UA-cam download function???
Hii ,great tutorial. Please I got this error : this supplied phased action failed with an exception. Could not open knit generic class cache for initialisation script
i didn't get any video for flutter notification with action buttons. like to decline or accept call, mark as read or reply button. can you make a tutorial on this please?
Hello I'm very grateful to you and your video which is super awsome . I have a question at while the first run of the project to test the API call an exception happened Exception has occurred. _CastError (Null check operator used on a null value) with the code import 'package:weatherapp_starter_project/model/weather/weather_data_current.dart'; class WeatherData { final WeatherDataCurrent? current; WeatherData([ this.current, ]); WeatherDataCurrent getCuurentWeather() => current!; and it couldn't run could you please help
can you please check if you are storing data to weather data current class. If you think issue exists then you can go to our pateron membership page and clone the source code for weather app. Thanks
I am getting an Exception Error: "Exception has occurred. _TypeError (type 'String' is not a subtype of type 'int')" For this Code: String getTime(final timeStamp) { DateTime time = DateTime.fromMillisecondsSinceEpoch(timeStamp * 1000); String x = DateFormat('jm').format(time); return x; } pls help!
the place where you are calling getTime, and passing timestamp value. I guess timestamp is string in your case. try to wrap it with int.parse(). So it will be like getTime(int.parse(time))
I mean the source code is available for patreon users, so you can check the source code there mate. Also, joining our channel as Patreon would be good for you also❤️🫠
@@backslashflutter i am unable to proceed to international payment due to bank issue.Does mudium account activation and developer account activation works same as One Call API?
Hi! I am a student who is studying flutter while watching your video! So I got a question while making it. In the global_controller.dart file, return await Geolocator.getCurrentPosition, in this part, "Exception has occurred. NoSuchMethodError (NoSuchMethodError: The method 'then' was called on null. Receiver: null Tried calling: then(Closure: (dynamic) => Null)) "There's an error like this. Help me
you can always use this website to convert the json code to dart model, just copy the json output and paste on this website and you have your model present!! javiercbk.github.io/json_to_dart/
copy everything that you receive from json query and install the dart model creator extension that I showed. and repeat the same steps. If nothing works, then oplease clone the repo
whenever i'm using that json to dart model extension its giving an error { " Command JSON to DART : From Clipboard' resulted in error (unexpected token u in JSON at position 0)}
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link Final source code, and this is the website which i will suggest for json to dart model javiercbk.github.io/json_to_dart/
Sorry about that, but please understand this part also on this channel i have people from all areas with different level of flutter. So if i spend explanaing each and every small things in detail then this video will go 10 hours in duration. Hope you understand.
I'm getting a "Null check operator used on a null value" in the application in the weather_data.dart file Please help sir, it's urgent Sir, can you please help me to solve a problem in this application
why? I checked it was working. please check the final source code and your subscription on the api panel drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
I have an error [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(NOT_FOUND, No address information found for supplied coordinates (latitude: 0.000000, longitude: 0.000000)., null, null)
YOu can see the latitude and longitude are 0.00 which means you are not fetching them correctly, here is final source code drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=sharing
E/flutter ( 7660): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'Null' is not a subtype of type 'Map' why i am getting that error plz reply
I encountered the same issue and had to debug a bit to identify its origin and understand what I was doing wrong. The solution, at least for me, was to: Verify the API call and ensure its correctness, which was not the case; there was a missing attribute in the API link, leading to the error (the API returned a 401 unauthorized error, causing a null error). After correcting the link, it worked as expected.
You have made it very complicated by making weatherdata everywhere..weather data, current weatherdata, weatherdata current, currently data weather, weatherly data current..etc. Making classes and files of identical names makes it super confusing... And you named dart Generated class as Weather which is again included in Json response.. So you got a weird weather class on 54:15 which is the main JSON parsed class
thanks for your suggestion. I knew this was something that was done a long time ago, hopefully if community need weather application videos, then will create some good code for it
super cool!!
Thanks 😊
정대리님을 여기서 뵙네요 ~ . 화이팅~ .
This helps me so much for learning flutter. I already started to learn flutter 2-4 months ago and now I am exercising code and saw this video. IT'S FKING AWSOMEEE WİTH EXPLANATİONS. Keep going dude.
Thank you so much for being part of our channel. ❤️💞
i was developing weather app and was searching how to make hourly forecast list ,this help me
ThANKS for tutorial 💛
I am happy to know that it helped you❤️ thanks for watching
At the start it was nice and calm fetching apis are pretty clear but dont know what are u doing with json continuesly creating classes and factory constructor :(
я из Кыргызстана, этот парень очень хорошо объясняет! спасибо ему
Hello! First of all thanks for the video, it helped me to understand better flutter and how the widgets work. I have a question, I followed your instruction to get the name of the city, but from the logs and the terminal it prints the error: "Error: Unexpected null value." I even tried to print the list but same results. But the API (I used the same as yours) is correctly returning the latitude and the longitude. Any advice or solution?
Just now I find you awesome channel.. I am a flutter Lerner.. your chennel help me..
Thanks for watching
Thank you very much for the tutorial! but why is it that when I run the project it always fails and points to the getAddress line at file header_widget.dart an there is no error description. I try to run your source code but it has the same problem. How can I fix that problem? I have no idea.
Fantastic video!!! It helped me so much.
Is there a way to update the data every 10-15 minutes maybe using a timer or something else?
Last thing, maybe a video with permissions request with dialog when it they are refused (like android rationale) can be nice (using permissions_handler, app_settings or similar)
First of all thank you so much for being the part of our Patreon community. I was super happy to see you supporting the channel and those small contributions help in growth of this channel.
I will be adding a last updated and reload button to the app where we can reload and get the data. Also for the request dialog, will see the packages that I can use
@@backslashflutter is there any news for the updating button? thank you
Sorry i just forgot about that. I am sharing my whatsapp number with you on patreon message chat. We can disucss more on the weather app features on whatsapp
At 44:24, You added a city = place.locality!; and then you restart the app and it shows you location ..... but in my case when i reload my app, it pop-ups 2 tab in vs-code that are binding.dart and plugin_registry.dart. In binding.dart, on line no. 359, it says "completer.complete(reply);" where the text cursor blinks between completer and (.) & in plugin_registry, on line no. 126, it says " callback(response);" where the cursor blinks in front of callback. What is the problem ? I am confused why i am getting these pop-ups while i debug.
On debug console bottom left end, you will see a check for uncaught expression. Please remove that and try it.
@@backslashflutter After that also my location hasnot been shown..Is this because I am displaying in chrome instead of window emulator?
@@backslashflutter There is no such check . I am also facing this same problem
Great work bro
I'm enjoying every videos of yours
You are doing great, your videos are very helpful
Thank you so much 💕
Super work .
Please tell me how make this presentation?
Hi thanks for awesome tutorial!
I got an error "latitude is out of range of [-90.000000, 90.000000] (too low)" and don't know how to fix it. can anyone help me?
can you please check the source code mate.
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
without subscription can i use open weather api map call and api?
I am not getting current ,hourly, daily weather data?
hi thanks for the tutorial by the way what is the model of your machine can it run multiple kubernetes cluster or multiple ios simulater instances.
i am having mac air 2020 variant mate, not that good. If you belong from a hot city then it will have heating issues.
One of the best explanation and projects making video ever seen.....keep uploading
Thank you, I will
Hello! did you develop some inventory app in flutter?
Sir structure apne mvvm architecture use kiya hai ya mvc architecture use kiya hai?? 6:22
awesome tutorial. Thanks a lot.
but my initState() function for getting the placemark is called before the globallController retrive the location data data. the placemark function is not waiting for the Globalcontroller to load. how to solve this
You can check thr source code mate
@@backslashflutter where can i found the source code?
On patreon sir. Link in description
I watched one on your UA-cam channel that was good.
Thanks
Hey, how to get location permission for android ? You showed for ios . Please help me out
what if the location service is not enabled in mobile device.It Keeps on going circular progess indicator and error shows on the debug console on pc.Is there not the way to make popup on the app showing that location service is not enabled in the device?
do check the package pub.dev documentation for more information
If i want to check the weather of my city, how can I bcz you have details of Lucknow only not a city entered by user
bro can u please give more project links like that ....im happy to learn with that 😁😁
this is super awesomee
Is this possible in flutter which can download the video from server and store it in SD card. and plays it while the app is in offline mode. Like UA-cam download function???
Ya this is possible
@@backslashflutter please make a tutorial please 🥺
Hii ,great tutorial. Please I got this error : this supplied phased action failed with an exception.
Could not open knit generic class cache for initialisation script
Click on File menu and
Select Invalidate Cache/Restart
Select Invalidate and Restart
Hope this works
37: 37. my circular progressing indicator is keep running and not showing test text
you can check the source code here
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
Same problem sir please help
i didn't get any video for flutter notification with action buttons. like to decline or accept call, mark as read or reply button. can you make a tutorial on this please?
Sure
I would be building a weather app for my final project,i hope u can help me with the Swift,Objective-c,Kotlin and html code parts🙏🙏🙏
can you please explain how to implement refresh indicator with GetX
create a function that will call our api and simply use onRefresh in our refresh indicator class
Can someone tell me whether the api used is free of cost or do i have to purchase it.....I'll start the vid after that.....😅
Will I be able to get weather of any location through this app?
yes
Can you give me the figma of project ? Thank for all
The explanations and the graphic representation are insane.
With a much better audio quality you would be unbeatable on UA-cam.
yes i am trying to make it better. Thanks for watching by the waty.
Hello I'm very grateful to you and your video which is super awsome . I have a question at while the first run of the project to test the API call an exception happened
Exception has occurred.
_CastError (Null check operator used on a null value)
with the code
import 'package:weatherapp_starter_project/model/weather/weather_data_current.dart';
class WeatherData {
final WeatherDataCurrent? current;
WeatherData([
this.current,
]);
WeatherDataCurrent getCuurentWeather() => current!;
and it couldn't run could you please help
can you please check if you are storing data to weather data current class. If you think issue exists then you can go to our pateron membership page and clone the source code for weather app. Thanks
@@backslashflutter same problem
bro.. why but this api is not working.. now I have created account also taken the subscription but.. in the postman its not giving me the dta
sorry sir. what if i don't have any card? can i still follow your tutorial without subscribing openweather?
not possible mate. all these services require their subscription to be enabled
Can you please do a Flutter tutorial showing how to build a CRUd app with GetX and GraphQL?
Sure ❤️
@@backslashflutter Gr8! Maybe you could use Hasura to easily create the GraphQL endpoint.
I am getting an Exception Error: "Exception has occurred.
_TypeError (type 'String' is not a subtype of type 'int')"
For this Code: String getTime(final timeStamp) {
DateTime time = DateTime.fromMillisecondsSinceEpoch(timeStamp * 1000);
String x = DateFormat('jm').format(time);
return x;
}
pls help!
the place where you are calling getTime, and passing timestamp value. I guess timestamp is string in your case. try to wrap it with int.parse(). So it will be like getTime(int.parse(time))
Icons and weather png are not loading in application. There is blank space instead of icons but the app is running
I mean the source code is available for patreon users, so you can check the source code there mate. Also, joining our channel as Patreon would be good for you also❤️🫠
@@backslashflutter sure sure i am joining and even images are fetched successfully
Thanku thankuuuuuuuuu so muchh 🎉🎉🥳
I am unable to use my debit card for international usage.How can i do others for free.?
Do check to enable international payment in your card
@@backslashflutter i have subscribed for developer account and meudim account acttivation.Do these also works same as one calll API?
@@backslashflutter i am unable to proceed to international payment due to bank issue.Does mudium account activation and developer account activation works same as One Call API?
Hi! I am a student who is studying flutter while watching your video! So I got a question while making it.
In the global_controller.dart file, return await Geolocator.getCurrentPosition, in this part, "Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The method 'then' was called on null.
Receiver: null
Tried calling: then(Closure: (dynamic) => Null))
"There's an error like this. Help me
set location priority to high and then try to do this
from where did you copy the custom class at 54:14
you can always use this website to convert the json code to dart model, just copy the json output and paste on this website and you have your model present!!
javiercbk.github.io/json_to_dart/
what theme are you using?
you can go with light fields theme in vscode.
There are too many files created in your model/weather folder but in my case only two files were created current.dart and weather.dart
Plz help 🙏🏻
copy everything that you receive from json query and install the dart model creator extension that I showed. and repeat the same steps. If nothing works, then oplease clone the repo
@@backslashflutter yeah it worked thanku so much
@@deepanshurohilla2114 thanks for being part of this channel ❤️
My card was denied while subscribing to the API is there any solution, please help.
Nice can you create a totrial about navigation in web with getx like go_router thx
Sure
great content....requesting bloc videos
Sureeee!!!!
This was interesting. I hope you create more projects in the Future.
yes will do that
whenever i'm using that json to dart model extension its giving an error { " Command JSON to DART : From Clipboard' resulted in error (unexpected token u in JSON at position 0)}
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
Final source code, and this is the website which i will suggest for json to dart model
javiercbk.github.io/json_to_dart/
which state management technique has been used in this project?
getx
Your card is declined problem while we are click on payment , please help
Same here
Wonderful tutorial 😃
thanks for watching
good tutorial other than for a beginner its really hard to keep up without pausing the video every 5 seconds to understand what you just did
Sorry about that, but please understand this part also on this channel i have people from all areas with different level of flutter. So if i spend explanaing each and every small things in detail then this video will go 10 hours in duration. Hope you understand.
In API tem = "temp": 273.23" but in same time weatherwebsite shows temp in Manhattan 6 c please guide me why?
Sorry for delay reply, can you please let me know if you are still having this issue.
@@backslashflutter thank you for your attention currently I'm learning the basics of flutter, after that I will continue this project.
can this code will run in andriod based app
yes this is running on those platform also
the allow location permission pop up is not showing in my app 34:11 i'm still getting the blanc white screen
I'm not using IOS so yeah, I have the same problem as you. If you have found the solution can you help me my good sir?
paste this in your manifest file.
Does this work on android and ios
yes
I want to add functions for city search through name that will show the weather information of that city. Can anyone help me with it..?
i am working on a weather app will soon tell everyone how this can be done
@@backslashflutter Thanks for the response and will be trying to figure it out myself till the video is out..!
I am using an android emulator but when I run it I get the loading icon and I don't know how to fix it
@Backslash Flutter
you can check this source code mate
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
I'm getting a "Null check operator used on a null value" in the application in the weather_data.dart file
Please help sir, it's urgent
Sir, can you please help me to solve a problem in this application
can you please email the error to me?
@@backslashflutter yes sir, i will send you
I wanted this weather app with provider package 🥺
Why Provider?
@@MrCamdere it's recommended by Google for state management.
what to do for location permissiion for android
please check this source code here: drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
Sir, can you please help me to solve a problem in this application
im getting a "Null check operator used on a null value" in the application in the weather_data.dart file
Please help sir, its urgent
I have shared the source code with you over email
@@backslashflutter thankyou 🥺
sir can you send me too please same error
Sir I am waiting for your responsive tutorial pls sir
Yes the next tutorial will be on that
api is not working in postman
why? I checked it was working. please check the final source code and your subscription on the api panel
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
model creation is not working
nice emoji btw :hahha:
here is the final project link: drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
42:14
??
@@backslashflutter it's for me, where I stopped the video and continue from there next time 😁
❤️
This defeats the MVC architecture is of getx...which is supposed to help u aeperate ur business logic from you view
add git link in descri
github.com/backslashflutter
Where do you belong to??
lucknow, uttar pradesh
Plz give me a source code
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=sharing
Please crypto currency exchange app.
Ok i will ❤️
I have an error
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(NOT_FOUND, No address information found for supplied coordinates (latitude: 0.000000, longitude: 0.000000)., null, null)
YOu can see the latitude and longitude are 0.00 which means you are not fetching them correctly, here is final source code
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=sharing
@@backslashflutter thank you
E/flutter ( 7660): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'Null' is not a subtype of type 'Map'
why i am getting that error plz reply
reply @backslashflutter
please check the source code for the final project. it is present here:
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
I encountered the same issue and had to debug a bit to identify its origin and understand what I was doing wrong. The solution, at least for me, was to: Verify the API call and ensure its correctness, which was not the case; there was a missing attribute in the API link, leading to the error (the API returned a 401 unauthorized error, causing a null error). After correcting the link, it worked as expected.
Hi, I always get an error message, can I send it to your email to help me with this problem?
you can check the source code first, and then let me know
drive.google.com/file/d/1RMizX35ld0csWRfyAkDEGfH077elggQn/view?usp=drive_link
You have made it very complicated by making weatherdata everywhere..weather data, current weatherdata, weatherdata current, currently data weather, weatherly data current..etc.
Making classes and files of identical names makes it super confusing...
And you named dart Generated class as Weather which is again included in Json response.. So you got a weird weather class on 54:15 which is the main JSON parsed class
thanks for your suggestion. I knew this was something that was done a long time ago, hopefully if community need weather application videos, then will create some good code for it