Easy Flutter Location Service for Realtime Updates in Provider

preview_player
Показать описание
This tutorial will cover a comment technique of wrapping specific functionality in a service in Flutter.

Рекомендации по теме
Комментарии
Автор

All your material and website is REALLY exceptional. The video is breakneck speed for people like me who are just starting out, but the step by step on the website is totally spot on to recap when I get lost. Other instructional vids go down unrealistic 'non real world' examples and teach poor design habits. However, just by watching your videos I've taken a step back from learning the small picture stuff and am now focused on understanding bigger picture design concepts. I'll fill the knowledge gaps in slowly as I go. Thanks so much for the terrific quality. You've helped a lot.

Mark-mobo
Автор

Love the way you teach. Please make more and more videos.

AnubhavAnand
Автор

Love how you put location on the vid as well, good vid!

dyssus
Автор

Excellent video, I really like the pace.

buck-johnson
Автор

I was finding this solution from a week
... Thanks man...

muhamadkhuram
Автор

Great tutorial. No need to use Scaffold, you can use any Widget with Material Theme, such Material widget

eddiekamau
Автор

nice tutorial... love the way you explained, what if application is in background or removed from background

rajkiranast
Автор

im getting Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget) for
builder: (context) => LocationService().locationStream,

ryandooley
Автор

Great Channel!!! Thanks for this tutorial 👍

kbyo
Автор

You're the greatest, I was looking a vieotutorial and the yours is the best.

PLAR
Автор

how to draw live location using flutter. I am currently working on a fitness app wherein we track the user location in the background. I would like to know how to draw the location traveled by the user. Can anybody please help me with this problem.
Thank you for reading.

srineeshsalur
Автор

Can you produce a video that shows how this concept can be applied to live tracking like the uber taxi type?
Thank you and Great video btw

alicemueller
Автор

If you implemented this on a pushed route and pop and pushed the route again, you will encounter:
Flutter : Bad state: Stream has already been listened to

My solution to this is update controller in LocationService:

import 'package:rxdart/rxdart.dart';
final _locationController = BehaviorSubject();

Then it will work perfectly again!

markdioneeb
Автор

hello buddy, first of all thank you for this beautiful tutorial... quick question, when requesting the persmission the granted value has to be a bool in order to work in the following IF statement. any quick tip how to go around it?

thanks again

santosvision
Автор

If anyone runs into problem with AndroidX migration please follow this guide.

madhusudhanr
Автор

Thanks a lot!! I would like to show a video with "Theme dark and Theme Light".

juliosena
Автор

Hi bro, any solution on event handling when the user denies the location access and app crashes... exception block didn't work in permission

SunilparajuliKenshin
Автор

Great tutorial!
Could you show us how to make a qr code scanner?


There are severel packages out there but they are not working or way to complex to use

GomzeYT
Автор

If I wanted to make an app that doesn’t transfer location data while the person is driving, would I then redo this model but take out the stream controller ?

marybelarenas
Автор

I have everything working properly, however when the map is loading i get this error for 2 seconds:

Error: the widget full screen map tried to read provider<UserLocation> but the matching provider returned null. to fix the error, consider changing provider<UserLocation> to provider<UserLocation?>.

I've tried the suggested method and it doesn't work. I have also exhausted almost all the "solution" on stack overflow n no luck.

Again, i am able to get the continuous update, but before the UI is showing, That Red Error Screen pops up and then goes away after 2 seconds and everything works fine afterwards.

Any wizard willing to help this noob? Thank you so much in advance guys.

santosvision