Complete guide using Scoped Model in Flutter | Flutter Architecture Tutorial

preview_player
Показать описание
In this tutorial I will be giving clear instructions and code guidelines on how to setup your Flutter application using the ScopedModel architecture. This architecture will make sure that if you are using scoped model your codebase stays maintainable as your business logic increases.

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

Incredible guide. It would be awesome if you do a similar video with BloC or maybe the first scoped model pattern (global AppModel)

carlosmariosarmientopinill
Автор

Fantastic. We use your architecture && app skeleton and it's incredible. Thank you so much!

maayanyossefmagenheim
Автор

Thank you for this video! It's very very helpful!

StoyanAtanasoff
Автор

Fantastic guide... The best explanation out there

dahamvitarana
Автор

Wow, nice architecture for Flutter app. Thank you for simple words and focus on main content on video and explain in details on your paper. Keep it up.

huule
Автор

Thank you! Didn't you have the case when you need multiple models for a view?

fhxopcd
Автор

Still find this setup one of the best, ease of access and scalability is great. One thing though, when it comes to setting up different development environments do you have a tutorial on that?

scottatkinson
Автор

Wish more had been said about get_it... why exactly is that needed?
And is the the model class from the scoped_model package an alternative to using state widgets or BLoC?
There was a medium article "Scoped Model vs BloC Pattern vs States Rebuilder", that seems to favor 'States Rebuilder', any thoughts on when you would use each?

bennguyen
Автор

Hi! I have a question. It might sound silly but i'm not sure so. Whenever we get a instance like UserModel using service_locator, do we get new instance? It's because if i want to keep states in the model, it would be wiped out if that's the case. For example if i moved to A page from B page and go back to B page, i would get new BModel? I'm sorry if it's hard to understand or silly question. Thanks.

I'm now trying to apply this archtecture with the one i learned from udemy course. It works pretty well. I changed a BaseView a little not to include ScopedModelDescendant because i want to avoid rebuilding widgets to the least. I feel that ViewState helps a lot to make a clean code for views using switch statements.

fhxopcd
Автор

Hi, thanks for this architecture. It is really nice. However, I have a question..if one has to use a mixin such as with animations, how do one still uses the Baseview ?

bargieMaster
Автор

Any recommendations on using a Scoped Model with Flutters Checkbox? the onChanged method is throwing it for a loop toggling itself true/false.

ryansampson
Автор

Very nice tutorial. One recommendation, if you can slow down a bit while you are explaining an important concept that will help in better understanding (else I would have to rewind it 2-3 times before it gets into my head :D ). Great work. Keep going.

anant
Автор

OMnS
Bro please tell me from where you learn this flutter and animation

rajdave
Автор

how to i wirte all my functions in one place (m.v c)

emyboybeats
Автор

Not getting circular progress indicator, default value of state in switch case is coming as null, where are we defining default value of view state?

vivek.tiwary
Автор

Hi,
Using your architecture, if we load a view and retrieve values in onModelReady, how can we fill those values in the form's TextFormField by using the controller or any other method?
I do not want to pass the values from the previous view in the constructor and then set the initial value of the TextFormField.

ahmadchishti
Автор

Ohh i have use this package too and now i stuck with fetch data from api that for normal return type from api is working well but for this structure is i really don't know how to do. example
{
"timesheet": [
{
"id": 41037,
"dates": "2019-05-03",
"project_id": 124,
"task_id": 328,
"number_time": "8",
"project": {
"id": 124,
"project": "name of project",
"project_type": "Wordpress Website and Mobile App"
},
"task": {
"id": 328,
"name": "Mobile Development"
}
}
]
}
}
so i don't know how to fetch data from api and have json like this.

sornvengy
Автор

Man... great content but the snap file changes REALLY slow me down. In future videos please give a couple moments of warning when you're about to change files. I'm spending more time going back over and over trying to see what you wrote in the millisecond between you pasting and switching away.

jonathan
Автор

Google brought me here and I got more than I asked for. In other words, I got lost in the model scope. Woooi. Let me repeat again.

joakim
Автор

This is fantastic content! But would it be possible to cut the videos not soooo fast? You cut away from your own sentences, so that they sometimes become incomplete, or you even cut away what you write in the code. This makes it - even though a video can be stopped - unnecessarily hard to follow.

RobertWildling