Flutter - Service Locator (GetIt) and Injectable
Автор: DartRider
Загружено: 2021-08-24
Просмотров: 5417
Описание:
As your App grows, at some point you will need to put your app's logic in classes that are separated from your Widgets. Keeping your widgets from having direct dependencies makes your code better organized and easier to test and maintain. But now you need a way to access these objects from your UI code. When I came to Flutter from the .Net world, the only way to do this was the use of InheritedWidgets. I found the way to use them by wrapping them in a StatefulWidget; quite cumbersome and have problems working consistently.
0:00 Introduction
0:55 Service Locator explained
03:42 Setup
05:16 How to access objects
06:55 Binding objects
07:29 Resolve Dependencies
08:07 Extra Features
GetIt:
https://pub.dev/packages/get_it
Injectable
https://pub.dev/packages/injectable
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: