I remember watching your video for the first time in January and didn't understand a thing. I'm happy to say I have grown as a Flutter developer very largely because of you.
@FilledStacks3 жыл бұрын
wooohooooooo!! That's exactly what I was hoping to hear. It takes a bit of time but once you understand it you'll make big steps forward as a developer.
@FilledStacks3 жыл бұрын
Thanks for leaving a comment about it. I appreciate it.
@wianvanzyl37663 жыл бұрын
Awesome! When I heard you talking I knew you were from South Africa! It's cool to see a fellow South African on KZbin! Awesome channel man.
@FilledStacks3 жыл бұрын
Thanks for watching Wian! I appreciate it. And thanks for leaving a comment, I'm happy to see so many South Africans find my videos. It means there's a lot of flutter devs around :)
@omoruboreoluwatobi61152 жыл бұрын
FilledStacks makes the journey to flutter a smooth ride. You show us the same code you use in your production-ready app. The slack channel members are supportive too. sincerely I owe my smooth ride in a flutter to you.
@FilledStacks2 жыл бұрын
Thanks for the kind words! I really appreciate it. I'll try my best to start putting out new content that keeps teaching more and more.
@tylerthornton96113 жыл бұрын
I am enjoying this video. Can't wait for the next one, but at least I'll have some refactoring to do to make the time go by. Thank you! 😁
@FilledStacks3 жыл бұрын
haha, awesome! Just preparing for the auto_route incompatibility coming up so we're getting infront of it by providing an additional way of handling it within stacked. I'll be improving the implementation and also start looking at navigator 2.0 functionality.
@altayebzahi46523 жыл бұрын
i just wish you can upload two videos a week .. when the content is so good waiting one week feels like a month hhhh .. i know its difficult i just wish
@FilledStacks3 жыл бұрын
haha, when I'm making it I feel like going faster. Last week I should've been able to put out two videos but building the package improvements took 3 days. Hopefully this week I can build the form functionality into stacked and then make the video ASAP as well.
@googler19613 жыл бұрын
Can't wait for UI part 😋
@FilledStacks3 жыл бұрын
haha, i don't like making UI videos but I guess I can probably make it fun.
@berosolo8663 жыл бұрын
Even though I always loved the stacked package, I might stick with autoroute after the update to navigator 2.0 Especially when flutter web support is on the way
@FilledStacks3 жыл бұрын
Good call. I’ll also build that into our package. I couldn’t find a way to supply the nav key. i might have missed that when trying the pre release v1
@ajnaf72773 жыл бұрын
@@FilledStacks are you going to support web for the stacked_router?
@FilledStacks3 жыл бұрын
@@ajnaf7277 Yes. I'll most likely have to learn Navigator 2.0 and then use that for routing. That has some good web support.
@josephjoey39043 жыл бұрын
Kindly show us how to make an auth system (login, logout and register) using stacked. Very interesting video, thank you sir
@FilledStacks3 жыл бұрын
That's the next video :) I'll start working on that in this week.
@josephjoey39043 жыл бұрын
@@FilledStacks awesome. Please use a rest API or/and with firebase (grudgingly added this) 😃
@FilledStacks3 жыл бұрын
@@josephjoey3904 Well t's being built using the backend that I explain 2 videos before this one which uses firebase auth directly.
@josephjoey39043 жыл бұрын
@@FilledStacks okay, yes I remember you saying sth about using firebase in production. Cheers bro. Do a comparison between custom server and using firebase
@letsibogoramadi543 жыл бұрын
Hello, how do I get the 'stkb' and 'stkv' auto complete to work..?
@FilledStacks3 жыл бұрын
Hey, it's a snippet that I added. It's on my github. go to my snippets and then copy the stacked snippets.
@LearnWithHibaNoor3 жыл бұрын
Awesome work. Currently I'm using flutter_modular 3.0 which is very similar to your app architecture pattern.
@FilledStacks3 жыл бұрын
Nice! I'll check it out and see how it is. thanks for letting me know.
@ezalor95553 жыл бұрын
Bro, thanks for introducing me to this!!! this seems very helpful and easy to learn
@FilledStacks3 жыл бұрын
@@ezalor9555 It does look nice and quick to setup.
@utrodussaidalbaqi9556 Жыл бұрын
Hi Dane Mackier, what are the best practices for saving model files?
@FilledStacks Жыл бұрын
I don't know exactly what you mean by saving model files. Can you please provide a bit more details.
@utrodussaidalbaqi9556 Жыл бұрын
@@FilledStacks I apologize if my question was unclear. I am interested in understanding the best practices for creating model files for specific features, such as the 'cart' feature, within the stacked framework. Could you please provide guidance on how to create model files for this feature within the stacked framework? Additionally, I would like to know the best practices for organizing these model files within the 'models' folder. Thank you very much for your assistance.
@FilledStacks Жыл бұрын
@@utrodussaidalbaqi9556 I don't want to brush the comment off, but all of that is documented in the docs :D It'll be much more detailed than what I can write here. stacked.filledstacks.com/
@ankitshastri284 Жыл бұрын
FilledStacks how to use deferred loading using in stack architecture. How to do that ??
@FilledStacks Жыл бұрын
That is not supported at the moment. It's something we'll consider when we focus on Web. At the moment we're fully focused on mobile and desktop applications.
@johndoe743 жыл бұрын
Hey. Quick question: I am using pull_to_refresh package in my View. ViewModel which has binded to this View extends to MultipleFutureViewModel which is used to get data from multiple apis. My question is what is the best practice to fetch all data when I pull for reloading? Thanx ahead.
@FilledStacks3 жыл бұрын
Hey, call model.initialise when refresh is triggered
@johndoe743 жыл бұрын
@@FilledStacks Oh. Thanks man. This works smooth
@FilledStacks3 жыл бұрын
@@johndoe74 Awesome!
@printfmit97443 жыл бұрын
stacked is just amazing
@FilledStacks3 жыл бұрын
Thanks man! I really appreciate it. I'm hoping that we can keep on improving it.
@mantricore17373 жыл бұрын
Thanks for your share, but i don't already know how to passing the data between view and viewmodel using navigateTo?How I catch the arguments from view?thanks
@mantricore17373 жыл бұрын
oh my bad, awesome work...
@FilledStacks3 жыл бұрын
@@mantricore1737 Thank you. Much appreciated
@cautaro2 жыл бұрын
I am a big fan of your framework as I use it in my app. At the moment I need to use Search Delegate to search for records through an API. Any suggestions on where would Search Delegate fit in with Stacked?
@FilledStacks2 жыл бұрын
That's great to hear. I don't know exactly where the delegate fits in to what you have now and your UI, but most likely I would use a callback function on the delegate to tell me what to search for. If that's how it work?
@charliepage67532 жыл бұрын
Hey @FilledStacks, is there a way to specify route arguments for your initial view (or make the arguments optional)? My initial route has a viewModel that is shared amongst a couple login views, and I want to either be able to specify that viewModel in the route arguments, or if none is found, initialize a new instance of that viewModel class.
@FilledStacks2 жыл бұрын
Hey, for initial routes no. Flutter has removed the ability to supply initial route arguments.
@charliepage67532 жыл бұрын
@@FilledStacks Thanks! Is there a way to set it up either in my view or app.dart so that the view arguments are optional for a specific route?
@FilledStacks2 жыл бұрын
@@charliepage6753 Yes, you make it nullable and it'll be generated as an optional parameter. We also now have the type safe navigation that's generated which makes it easier for you to ensure you're passing or not passing the correct data when going to a new route. The docs are going to be published today for that feature. You can read it here, until the PR is resolved for the docs. github.com/FilledStacks/stacked-docs/blob/f3d7235af97af79d49ac4bfda054c572e6ae2b15/docs/feature-guides/Navigation/type-safe-navigation.md
@taiwo7633 жыл бұрын
i didn't see Apple sign in included on the design, is that to say we are not having Apple sign in and won't that violate the new Apple policy as of July-2020.
@FilledStacks3 жыл бұрын
We'll definitely add that, we can do all the social sign ins on 1 video to speed things up. But we'll definitely use Apple sign in as well, i'll add it to the designs afterwards. It also has to be at the top lol, Apple does such monopoly plays on their platforms.
@EricPLMobileDeveloper3 жыл бұрын
is there possible switching black and light them by using stacked ? Hope will has this tutorial. You're such a good tutor !
@FilledStacks3 жыл бұрын
Yes there is a tutorial on this already: kzbin.info/www/bejne/fGXZfYJsrM-apdE
@harrycarter4393 жыл бұрын
Thanks for this great package. Can I ask if it is ok to use this in conjuction with providers Selector, to rebuild only specific widgets? Thanks
@FilledStacks3 жыл бұрын
Hey, you're welcome. And yes, Sure, you can do that. But I would shy away from having 3 systems that cause rebuilds in your app, it might bring up some hard to track UI issues.
@harrycarter4393 жыл бұрын
@@FilledStacks Do you think it would just be better to use reactive ViewModelBuilder? I am just a bit worried about the performance hit as I have some big widgets that will get rebuilt. Thank you.
@FilledStacks3 жыл бұрын
@@harrycarter439 My usual approach is to solve problems. If there's no problems I don't look for solutions. I'd say go the normal way, if there's a problem break your widgets up, if there's still a problem use provider selector in specific places in addition to stacked or just copy stacked out and add some selector functionality in there and use that. But for now I'd say do nothing until there's a problem in release mode.
@harrycarter4393 жыл бұрын
@@FilledStacks My widgets are currently broken up in seperate files already so thats not an issue. I never really thought of it like that, I will do what you have suggested. Many thanks for your time.
@FilledStacks3 жыл бұрын
@@harrycarter439 You are very welcome. It's something I've learned to incorporate in my journey to mastery. Solve problems not potential problems. I'm happy I could have helped.
@affankagzi68453 жыл бұрын
can i pass 2 models inside viewModelBuilder. for example if i want to display data from 2 different model on 1 screen
@FilledStacks3 жыл бұрын
No, that should never be required. Put the data in a service and access it in the separate viewmodels
@rizi6193 жыл бұрын
if i am building this app with custom REST api and not with firebase, what changes does it require, is there any way we can get a separate code from you which will work without firebase but with REST api.
@FilledStacks3 жыл бұрын
Not many, you'll replace the calls to the firebase services to your rest api. And no I don't think I can build the app in two ways. This one will already take a year doing 1 videl a week. But I'll abstract at the end and replace with rest api calls.
@mohsinraza53352 жыл бұрын
stuck on the navigation part, I followed every step carefully but when I run Flutter pub run build_runner build --delete-conflicting-outputs, app.router.dart file is not generating, please help :((
@FilledStacks2 жыл бұрын
make sure you have build runner package added
@mohsinraza53352 жыл бұрын
@@FilledStacks I do have the package added but the build succeeds with 0 outputs :((
@FilledStacks2 жыл бұрын
@@mohsinraza5335 make sure you added the right annotation, make sure the stacked generator is therr, make you're running in the correct project
@mohsinraza53352 жыл бұрын
@@FilledStacks Ya i checked everything, i think there is something wrong with my vscode since i am the only one facing this issue, i read the syntax of the generated file and wrote app.router.dart manually, Works like a charm xD, I am using stacked MVVM architecture for everything in my apps now and it makes the code look so much nicer, ITS AMAZING!!!
@FilledStacks2 жыл бұрын
@@mohsinraza5335 I hope you can sort that issue out. And yes, we use stacked for all our projects. I have some great updates planned that's going to make things even better.
@stephensilverstein48553 жыл бұрын
Thoughts on flutter navigator 2.0 and web support?
@FilledStacks3 жыл бұрын
My thoughts on Navigator 2.0 are limited. I've seen no need to switch to it on my Mobile dev side. But as I can see there's a sentiment that it's better for Flutter Web. I'll most likely start using it or just implement it for Flutter web side if needed. I have to explore it before I can say anything concrete about it.
@arthuradrian2833 жыл бұрын
Encountering an error when trying to run build runner for the navigation service. Used the same dependency versions and double checked everything, but I keep running into this error. [INFO] Running build... [INFO] Generating SDK summary... [INFO] 3.2s elapsed, 0/7 actions completed. [INFO] Generating SDK summary completed, took 3.2s [INFO] 4.3s elapsed, 6/7 actions completed. [INFO] 11.1s elapsed, 6/7 actions completed. [SEVERE] stacked_generator:stackedLocatorGenerator on lib/core/app/app.dart: NoSuchMethodError: The method 'getDisplayString' was called on null. Receiver: null Tried calling: getDisplayString(withNullability: false) [INFO] Running build completed, took 11.6s [INFO] Caching finalized dependency graph... [INFO] Caching finalized dependency graph completed, took 93ms Any help would be appreciated.
@FilledStacks3 жыл бұрын
There was a new version published today that fixes this up. This came just after the analyzer package was updated which was a few days after my video :D
@ronealdenila93643 жыл бұрын
have you solved it? I am also experiencing this right now and I'm using version ^0.2.4 for stacked generator
@djcali003 жыл бұрын
Hi! and thanks for the stacked package!! Watched just about all your videos but having an issue updating multiple views. I basically have a StartupVIew and model, DrawerView and model, and a DrawerService. When I click a button in the drawer I update which view to change to but the startupView does not rebuild...... .......DrawerView -------- Button onTap > model.updatePage DrawerViewModel -------- final _drawerService = locator(); int get selectedPage => _drawerService.selectedPage; Updatepage(page) { _drawerService.changePage(page) notifyListeners() } DrawerService -------- class DrawerService { int _selectedPage = 0; int get selectedPage => _selectedPage; void changePage(newPage) { _selectedPage = newPage; } } StartUpViewModel --------- final _drawerService = locator(); int get currentPage => _drawerService.selectedPage; final List pages = [ FirstView(), SecondView(), ThirdView() ]; StartUpView -------- drawer: child: DrawerView() body: model.pages[model.currentPage]
@FilledStacks3 жыл бұрын
Thanks for watching. Go to episode 2 on the playlist "How to architect a Flutter app". That will show you how to setup a reactive service to get the viewmodels to rebuild when a service value changes.
@yvesfricker54983 жыл бұрын
running 'flutter pub run build_runner build --delete-conflicting-outputs' to generate routes and getting this error: [SEVERE] stacked_generator:stackedRouterGenerator on lib/app/app.dart (cached): Failed assertion: boolean expression must not be null [SEVERE] Failed after 302ms Any help is much appreciated!
@FilledStacks3 жыл бұрын
Paste your StackedApp definition in here.
@saravananm22803 жыл бұрын
I don't know, but may be you haven't set the initial:true.
@saravananm22803 жыл бұрын
Can't we integrate the stacked architecture with the new auto_route version or are you working on it?
@FilledStacks3 жыл бұрын
I am not working on it. I actually moved away from auto_route because it wasn't compatible. When we need to integrate navigator 2.0 I have a feeling that we'll be completely different from auto_route at that point.
@wheatonrecurrence95253 жыл бұрын
How do I pass arguments across screens with the navigator under this architecture?
@wheatonrecurrence95253 жыл бұрын
Nvm, did it using a service. Thanks!
@FilledStacks3 жыл бұрын
Hey, you can pass it as arguments when calling the navigate function you're using. They all accept arguments.
@wheatonrecurrence95253 жыл бұрын
@@FilledStacks Oh wow, yes I can. Sorry, a bit of a noob at this. Thanks for the response! Appreciate all your work.
@FilledStacks3 жыл бұрын
@@wheatonrecurrence9525 No worries. I'd be careful with my content if you're new to Flutter. It can make things much more complicated if you don't know why things are done a certain way.
@suhasshelar0013 жыл бұрын
@FilledStacks Awesome stuff. I had used bloc architecture which was too hectic to maintain. I came across your videos and I have switched to MVVM for my next app. I have a question though which is blocking my immediate progress. How to access the ViewModel in the initstate. Say I have a splashscreen and I want to simply to certain steps to check user status and navigate to Login or Home screen. Do I simply create an Object of ViewModel and call the method from it? Thanks for the awesome Library!!
@FilledStacks3 жыл бұрын
That's awesome man, I'm happy that you found it easer to use than BLoC. I show that exact functionality here in this video kzbin.info/www/bejne/mmepkoltmNWSj6c You can just run the code in an initialise function and then navigate when your logic is complete.
@suhasshelar0013 жыл бұрын
@@FilledStacks Ahh! So elegant. Thanks mate :)
@FilledStacks3 жыл бұрын
@@suhasshelar001 You’re welcome ☺️
@suhasshelar0013 жыл бұрын
@@FilledStacks I have few queries that I would like to discuss and was wondering how to reach out. I saw the 'Join Slack' button on you blog but it's not working any more. Could you please add me to that? My slack email is: suhastestacc[at the rate]gmail[dot]com . Thanks!!
@dharmatejamyneni48793 жыл бұрын
Can you upload object oriented programming through dart ? It will be helpful for my friends and also for others. Coz I'm following you from 1 year . You r a good tutor
@FilledStacks3 жыл бұрын
Thanks a lot man, much appreciated. I actually don't know much about Dart itself. I might make a beginners tutorial in the future but at this point that's not something I want to teach, there's a lot of good beginners OO courses out there already.
@srineeshsalur5243 жыл бұрын
I have a few questions regarding routing 1. How to setup a default route: Default page to be shown when something goes wrong in app.dart ? 2. Is it required to run build_runner everytime i added a new route/page? 3. Please redirect/make a video on generators it gets confusing real fast. 4. How to send arguments between pages in stacked generator? 5. For some reason if i register a service called thisISaNewService and trying to register it in the builder function the build is failing.
@FilledStacks3 жыл бұрын
1. Set it to initial 2. Yes 3. I have no video about generators 4. Pass in the ViewNameArguments class to the arguments parameter when you navigate 5. Don't register anything in the builder functions. That's not where registration happens. And it should never be in there. Responsibility of service registration should lie in your locator file.
@srineeshsalur5243 жыл бұрын
@@FilledStacks Thank you for the reply, regarding generators Reso coder has a nice resource . kzbin.info/www/bejne/n4fTh3Wjec2jgLs&ab_channel=ResoCoder So what i understood is if i am having different services that are present outside of stacked_services package, i have to create a different locator.dart file and register them in that file right. Also a few suggestions for stacked package 1. when using viemModelBuilder with onModelReady for a screen, for any exceptions that are caused from the database or if there are no objects in the database i am sending them as custom objects, it would be better if there is a more efficient way. 2. Please please make a tutorial for cacheing with stacked as statemanagement. In the current version i am managing the cacheing and retrieving logic in viewModel -> onModelReady function i would like to know your take on that. Keep up the good work
@FilledStacks3 жыл бұрын
@@srineeshsalur524 Thanks for sharing that resource. No, that's not correct. You register all services in the same file. 1. I don't know what that means exactly. We're providing a function for you to run code when the model is ready, there's nothing else that function is meant for. Error handling is up to you, I can make it opinionated but at the moment it's not a high priority. 2. I show that in some of the videos i think. When I get something from say getPosts I first check locally if I have the results. If I don't then I go to the api. When the results come back from the api then I save it locally. If that same set is requested next time then it'll be on disk so will return quick. It's all done service side, the viewmodel stays the same.
@AHMADFIRUZE3 жыл бұрын
is "injectable plugins" still compatible with the "stacked" ?
@FilledStacks3 жыл бұрын
Yes! Everything is still compatible, auto_route as well. Auto_route won't be from v1.0.0 but injectable should be. This was simply to improve the setup for an entire application when starting brand new.
@michaeladeyeri59823 жыл бұрын
Thanks for the lovely video. Did you move the transition builders that comes with Auto Router to Stacked also?
@FilledStacks3 жыл бұрын
Yes, I think I did. But I don't know if it's exposed.
@michaeladeyeri59823 жыл бұрын
@@FilledStacks Oh, I don't think it is, because I got an error trying to use it. Can you expose it on the pkg itself? Thanks once again for all you do.
@FilledStacks3 жыл бұрын
@@michaeladeyeri5982 I just pushed the update to expose those transition builders. It wasn't in there yet
@michaeladeyeri59823 жыл бұрын
@FilledStacks Thanks so much. You are the best!
@FilledStacks3 жыл бұрын
@@michaeladeyeri5982 :)
@Abhishek_Pal3 жыл бұрын
tried a lot but my build_runner never completes and keeps on giving warning for the files we created, this is going on infinitely. [INFO] 7m 16s elapsed, 1/7 actions completed. [INFO] 7m 17s elapsed, 1/7 actions completed. [WARNING] No actions completed for 15.1s, waiting on: - stacked_generator:stackedLocatorGenerator on lib/main.dart - stacked_generator:stackedLocatorGenerator on lib/ui/startup/startup_viewmodel.dart - stacked_generator:stackedLocatorGenerator on lib/ui/startup/startup_view.dart - stacked_generator:stackedLocatorGenerator on lib/ui/second/second_view.dart - stacked_generator:stackedLocatorGenerator on lib/ui/second/second_viewmodel.dart .. and 1 more any help is deeply appreciated.
@FilledStacks3 жыл бұрын
That usually happens when the build_runner is out of date with the package's dependency. One way to fix that is to remove the version next to your build_runner and then run flutter clean, then flutter pub upgrade and try again.
@reigningdale3 жыл бұрын
@@FilledStacks I still have the same error. I already followed to steps.
@ronealdenila93643 жыл бұрын
also have the same error. I really want to catch up on this episode but got stuck because of this
@pyongits3 жыл бұрын
How you setup flutter in vscode?
@FilledStacks3 жыл бұрын
install the dart code plugin and the flutter plugin the you’re ready to go
@pyongits3 жыл бұрын
@@FilledStacks How about the emulator?
@FilledStacks3 жыл бұрын
@@pyongits You download Android Studio and Install that and you get the emulators with it.
@harshitrathi30773 жыл бұрын
Sir When will you start food delivery app
@FilledStacks3 жыл бұрын
In this video :)
@harshitrathi30773 жыл бұрын
@@FilledStacks so you have started with this video ?? How Many More Parts Will Be There and when will the next part come ?
@FilledStacks3 жыл бұрын
@@harshitrathi3077 The next part is building the Login and Create Account view and business logic flow to create a user entry in the DB after they've logged in. I'm expecting a basic version of this product to take about 50 videos, maybe a year. Like the super basic functionality. The mobile app working where you can order, make a payment, track the order and then deliver that. From the restaurant side and driver side they can then update that order status to let the user know where the order is in the order pipeline.
@harshitrathi30773 жыл бұрын
@@FilledStacks Oh Thats Great
@googler19613 жыл бұрын
Can you provide that Figma UI File ? to me ?
@FilledStacks3 жыл бұрын
I can not :) I paid for it and it would be a disservice to the creator of that UI. You can support him and buy it here ui8.net/ui8/products/foodly-ios-ui-kit
@hamzashahid89862 жыл бұрын
Waiting for new videos , And also waiting for tutorial for clean code architecture , Like clean swift architecture.
@FilledStacks2 жыл бұрын
Stacked is based on the book clean code and the SOLID principles. I don't have any other architecture. I only use stacked and the pricinples I teach on the channel. There's no clean code architecture videos coming out besides all the ones that I've created. But I am hoping to create a new video. It's about testing, not really the architecture.
@kevinmathew13093 жыл бұрын
Is stacked still usibg observable_ish?
@FilledStacks3 жыл бұрын
It’s still in there but i don’t use it. And i don’t recommend it anymore. will remove it soon
@kevinmathew13093 жыл бұрын
@@FilledStacks then what should we use to update multiple views
@FilledStacks3 жыл бұрын
You can call notifyListeners in the service and it'll update all the viewmodels that has registered that service as a reactive service.
@kevinmathew13093 жыл бұрын
@@FilledStacks call notify listeners from service? Usually we call it in virwmodels right? Have you demonstrated it in any of your videos?
@FilledStacks3 жыл бұрын
@@kevinmathew1309 I have not, but the RxValue listen function simply listens to the event stream from the value and calls notifyListeners. So I just made it public. It works exactly the same as in the ViewModels. You change a value, you call notifyListeners. Then it rebuilds.
@sushrutpatwardhan89813 жыл бұрын
hello, i like your packages and i'm interested in learning how to build packages. I would like to contribute to your packages(under your guidance) so that i can get bit more real world experience. If it's possible please let me know
@FilledStacks3 жыл бұрын
Of course it is. The cool thing about the open source packages is that you an contribute whenever you want. Find an issue you'd like to fix on one of our 8 packages, comment on it to let me know you want to tackle it and then we can start talking about it on there.
@sushrutpatwardhan89813 жыл бұрын
@@FilledStacks Sure. Thanks.
@kevinmathew13093 жыл бұрын
'So they're all making a request using the same base url with different endpoints, they're all in different files where they belong. All good, what if I told you that now each request has to send in a default header. You can go to all three of these places and go update the default header, ok fine. You did that. Now I tell you that when a response comes back with status code 444 you have to show an Force update dialog, when the response comes back with a 404 you have to refresh the Auth token, when you get a 420 you have to show a login dialog.' This is a small portion taken from your services tutorial, can we have an example how to refresh token or how to differently handle different cases. we do it from service class, right?
@FilledStacks3 жыл бұрын
As I was reading that I was thinking, this sounds so familiar lol. I said it :D The token refresh is quite simple on my side, I pass it through the header in my response. So in my _makeHttp request which every api call uses I check for the header. If it's there I save it to shared preferences. That's about it. When the app starts up I set the header using that token and then that's automatically passed to all requests if it's not null in the _makeHttp request function. The _makeHttp request function is the function that makes all requests, it takes in a url, a request type, and an optional body.
@kevinmathew13093 жыл бұрын
@@FilledStacks so once a 404 is returned, you refresh the jwt token in http request function(in api service) itself?
@FilledStacks3 жыл бұрын
@@kevinmathew1309 Yes, that's one way to do it. That will be auto-refreshed. You can always paramaterise the function to turn it on or off depending on the request.
@hurbes1013 жыл бұрын
🔥🔥🔥🔥🔥
@FilledStacks3 жыл бұрын
:D Yeeeaaahh
@mudassirjabbar42 жыл бұрын
i wish i was able to understand all of this because you have missed so many things for beginners
@FilledStacks2 жыл бұрын
One day you probably will, there's more thab enough beginner material out there. I focus specifically on intermediate devs that want to move into the senior space or better maintain their existing production applications. You need to already understand the basics of OO software engineering and the basics of the SOLID principles. Then this will make more sense to you.
@mudassirjabbar42 жыл бұрын
@@FilledStacks thanks for taking note, as of now i am somehow managing to understand but after lot's of rewinds and deep focus. If you could make a beginner series that would help a lot of newbies. Because i couldn't find any other tutorial regarding stacked and providers on KZbin. Thanks ❤️
@FilledStacks2 жыл бұрын
@@mudassirjabbar4 I'm happy you're making some progress. We're busy with the docs now. It will be more beginner friendly and will be written as a set of tutorials you can follow end to end.
@mudassirjabbar42 жыл бұрын
@@FilledStacks i will be waiting eagerly for that series ❤️
@howed Жыл бұрын
In this serires everything was going well until the firebase backend guy took over
@FilledStacks Жыл бұрын
hahahahah 🤣
@PopcornInfotech-gt7lu11 ай бұрын
Getting this error when running "flutter pub run build_runner build --delete-conflicting-outputs". Need help Deprecated. Use `dart run` instead. [INFO] Generating build script completed, took 168ms [WARNING] ../../../../.pub-cache/hosted/pub.dev/stacked_core-1.2.4/lib/src/code_generation/locator/stacked_locator.dart:405:19: Error: The argument type 'Object?' can't be assigned to the parameter type 'T?'. - 'Object' is from 'dart:core'. instance: instance, ^ [INFO] Precompiling build script... completed, took 640ms [SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart. This is likely caused by a misconfigured builder definition.
@FilledStacks11 ай бұрын
You should update the packages to the latest and use dart run instead.
@aidan.shilling3 жыл бұрын
Hi awesome video and great package. I am having a slight issue with navigation. When a create a function void goHome() { _nagivationService.navigateTo(Routes.homeView); } in the vewmodel for a view after generating my routes and everything, I get an error saying "Object/factory with type NavigationService is not registered inside GetIt. (Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance; Did you forget to register it?)" I have been trying to debug this for a few days any insight would be appreciated. I really like this architecture this is the only thing I cant seem to get working. Thanks for any help you can provide!
@aidan.shilling3 жыл бұрын
I am a fool I forgot to call setupLocator()
@FilledStacks3 жыл бұрын
haha, happy that you found the solution. Thanks for leaving a comment