Comments (7)
The example is using injectable which you don't have to use. If you do you still have to run the builder to generate the service registration code.
Seems like you're mixing up some stuff here. provider_architecture is the exact same as this package there's just some extra functionality in here and name changes. So how ever you did it with Provider package you can do the same with this one. No need to use injectable if you don't want to.
from stacked.
So I'm brand new to this... apart from watching the tutorials...
So starting with stacked and the example in there.
I assumed that the example was now the best practise starting point.. so was simply trying to add a dialog using the dialog service already in there.
got stuck.. so then as it was intimated there wasn't any changes other than naming referred back to the provider_architecture example... which is as you say not using injectable.. or get so got a little confused. :-)
from stacked.
No the example is definitely not a best practice of any kind. It's simply examples of how to use the widgets in the package. This is not a good place to start. I would say you should watch this video which is where the architecture comes from and where the package comes from. Then you can follow along with my Firebase series to understand how to use provider_architecture.
Get_it or injectable, or get has nothing to do with the provider_architecture or stacked. Those are extra libraries we use for other parts of the architecture like navigation and showing dialogs. If you don't know how to use the DialogService you can watch my video on it, the video is a bit out dated but you could figure out if you actually want to use it like that. I use get for the dialog service completely now.
I'd say if you go through my web series or my firebase series you'll see how the provider_architecture package is used. Then you install stacked and rename the classes since it's the same.
from stacked.
confused even more now then.. so the example folder in stacked which includes a dialog_service.dart isn't usable?
ps just tried the build from injectable and it added the dialog_service in.. but still same error shows when clicking the button I'd added the showDialog too :-)
But ok I will revert to example(s) from provider_architecture that don't use get/injectable and just as you say refactor to stacked.
(though get and injectable look good!! for offsetting more CRUD)
thanks kindly for you words of wisdom. :-)
from stacked.
The dialog service is usable. The key for get hasn't been set in the material app. You can set it and run the builder and it should work fine. But it's not an example of how to build an entire app with it.
Also the examples are copied from provider_architecture so you'll see the same code apart from the added new functionality.
from stacked.
You beat me to it,,, Was just about to post.. navigatorKey: Get.key, needed in MyApp after reading the get instructions... ;-) and a rebuild for injectable.
Are we talking about the same example here?
https://github.com/FilledStacks/stacked/tree/master/example/lib
vs
https://github.com/FilledStacks/provider_architecture/tree/master/example/lib
they aren't similar in a few ways, structure, no dialog_manager, services? enough to confuse me anyways...
Thanks again for entertaining and responding to my queries.
from stacked.
You're very welcome :) Happy to shed any light. The example folder structure is a bit different but I copied the view files as is with their viewmodels for the examples and just updated the naming.
I'm busy with the first videos written tutorial now. I'm hoping I can release it today. It's 8:40 AM here 26 April. I think I should be able to do the package updates, write a written tutorial, record and edit a video and upload it in 12 hours. Otherwise the video has to wait until next week :)
from stacked.
Related Issues (20)
- [bug]: Migrating to Navigator 2.0 is not updating existing app.route.dart file HOT 4
- [bug]: ViewModelBuilder creates new ViewModel everytime HOT 2
- [bug]: Error when running stacked create service HOT 5
- [feature]: Add --no-test flag to stacked create commands HOT 3
- [feature]: Customizable Logger Filters for StackedLogger HOT 1
- [bug]: Generated form with only drop down form fields has missing methods and multiple errors HOT 1
- [bug]: build runner failing on Stacked-generator-1.6.1-pre.1 HOT 3
- [bug]: isBottomSheetOpen HOT 4
- [bug]: replaceWithTransition doesn't work as expected HOT 2
- how i can navigate to any screen if my app is in the terminated state? HOT 1
- [feature]: WebAssembly (Wasm) Support HOT 3
- Generator not working for routes HOT 4
- [feature]: Google Cloud Logging Output Target for Stacked Logger HOT 3
- [feature]: Lazy construct RouteGuards
- [bug]: Unexpected app re-initialization on web page reload when using Stacked architecture
- [bug]: Navigate to a View with Arguments crashes WEB app when browser page is reloaded HOT 6
- [feature]: add format process on generate command HOT 7
- access to RouteAwareStateMixin ?
- [docs]: HOw to achive this MaterialRoute(page: StartupView, initial: true, path: '/:uiD?', ), // Optional parameter route
- [bug]: Files missing on new app creation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stacked.