Тёмный

get_it_mixins - State management for get_it 

Flutter Explained
Подписаться 37 тыс.
Просмотров 4 тыс.
50% 1

Today we want to take a look into get_it_mixins another state management solution that is perfectly integrated with the get_it package from Thomas.
#get_it_mixins #statemanagement #flutter
Timetable:
00:00 Introduction
00:42 Improvements from Thomas for Get_it
01:50 Introduction into Get_it_mixins
04:00 Adding Get_it_mixins into our State solution
Important Links:
github.com/md-weber/state_tut...
github.com/md-weber/state_tut...
pub.dev/packages/get_it_mixin
** New Mentorship Program to boost your Flutter career **
gumroad.com/l/ydgtfV
**BOOKS I RECOMMEND**
geni.us/flutterbook
geni.us/clean-code
** RU-vid OPTIMIZATION PLUG-INS I USE **
TUBEBUDDY: www.tubebuddy.com/flutterexpl...
VIDIQ: vidiq.com?afmc=7jl
**ALL THE RU-vid EQUIPMENT I USE**:
Our current RU-vid gear
💻 MacBook Pro: geni.us/mac-book
📹 Lumix FZ1000: geni.us/fz-1000
🎙 Samson Mic: geni.us/samson-mic
🎉 ACCESSORIES:
Satechi USB-C Adapter: geni.us/P9R0
SD Card for 4k Videos: geni.us/PTAc
Disclaimer Flutter Explained (Max & Mahtab) are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to www.amazon.com.
** Social Medias **
Website: flutter-explained.dev
Say hi to Max
Twitter: / flutter_exp
GitHub Max: github.com/md-weber
LinkedIn: / max-weber-9889a3ba
Say hi to Mahtab
Twitter Mahtab: / mahtab_dev
GitHub Mahtab: github.com/mt-tadayon

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@burakbirer
@burakbirer 3 года назад
Finally there is a video about get_it_mixins :) Thank you,
@stefaandeconinck1531
@stefaandeconinck1531 3 года назад
Thanks for the again very clear explanation.
@escamoteur
@escamoteur 3 года назад
if you already use flutter_hooks but want to use get_it_mixin this woesn't work because we both use the same 'hack' but I also published a package called get_it_hooks that gives you the same functionality but as hooks.
@FlutterExplained
@FlutterExplained 3 года назад
Update 15.12.2020: Instead of using getX you should use watchOnly, check the readme of get_it_mixins pub.dev/packages/get_it_mixin#watching-data) I hope you liked today's episode! If you want to know more about Get_it, check out the video here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DbV5RV2HRUk.html.
@SysLynx
@SysLynx 3 года назад
Please can you add a tutorial on injectable.
@FlutterExplained
@FlutterExplained 3 года назад
Added to my list :)
@SysLynx
@SysLynx 3 года назад
@@FlutterExplained Thanks alot. I would like to mention that I tried your tutorial on get_it_mixin and I have some remarks. 1. My app crashes when I am trying to declare global instance of getIt using asNewInstance so I can only declare it using the static instance GetIt locator = GetIt.asNewInstance() will fail GetIt locator = GetIt.instance succeeds 2. In the GetItMixinScreen, if I use the get or getX as per your video, state does not update. I had to use watch instead for it to work. so the question is when to use get/getX and when to use watch/watchX? Correct me if I am wrong, but I feel get/getX is like Provider with listen: false and watch is Provider with listen: true. so maybe if I am to read once or execute a method I will use the get and when I am waiting for updates/state changes I should consider watch. please confirm! thank you
@FlutterExplained
@FlutterExplained 3 года назад
​@@SysLynx That is both correct, I had these two mistakes and updated the GitHub Repository and added a comment in the first comment pinned to the video. In the following GitHub Repositories, I added the solution so you can compare them to yours. Regarding 1. github.com/md-weber/state_tutorials/blob/get_it_mixins/solution/lib/get_it_mixins/locator.dart Regarding 2. github.com/md-weber/state_tutorials/blob/get_it_mixins/solution/lib/get_it_mixins/get_it_mixins_screen.dart Sorry for the inconvenience and I am glad that you found the solution anyways, great job!
Далее
Flutter State Management - The Grand Tour
14:07
Просмотров 238 тыс.
마시멜로우로 체감되는 요즘 물가
00:20
Просмотров 18 млн
I bet you can understand NgRx after watching this video
22:48
get_it (Package of the Week)
1:21
Просмотров 129 тыс.
Why Signals Are Better Than React Hooks
16:30
Просмотров 462 тыс.
ObjectBox - sync
1:03
Просмотров 3,7 тыс.