Flutter Bloc Library Tutorial - Cubit - Localization App

Published: 24 August 2022
on channel: Rabee Omran
12,751
369

في هذا الفيديو سوف نتعرّف على الCubit ، ماهو وكيفية التعامل معه ومتى يجب استخدامه وما الفرق بينه وبين الBloc ، وسنقوم ببناء تطبيق يمكن للمستخدم من خلاله ان يقوم بتغيير لغة التطبيق من داخل التطبيق وحفظ هذه اللغة واعتمادها في التطبيق بشكل دائم إلى حين تغييرها مرة اخرى ، وسنتعرف على العديد من الميزات والخواص الخاصة بالBloc\Cubit.

BLoC vs Cubit :
  / flutter-bloc-vs-cubit  

Source code :
https://github.com/Rabee-Omran/Flutte...

Facebook page :
  / rabeeomran.developer  

Facebook account :
  / rabeeomran2  

LinkedIn account :
  / rabeeomran  

00:00 Intro
00:27 About the video, initial project, what will we build?
03:24 How can we do this using BLoC?
05:12 How can we do this using Cubit?
05:40 BLoC vs Cubit
07:07 Implement Cubit
10:43 Write Cubit States
11:43 Continue implementing Cubit
13:40 Provide the bloc to the widget tree
14:53 Using BlocBuilder
17:17 Calling first function in Cubit (get app language)
18:24 Using MultiBlocProvider
19:45 Get initial value in dropdown
21:30 Calling second function in Cubit (change app language)
23:15 Using context.read() extension
23:44 Test application
24:50 Using BlocListener
26:29 Using BlocConsumer
27:29 Improve Cubit States class
29:18 Test application
29:35 The end


On this page of the site you can watch the video online Flutter Bloc Library Tutorial - Cubit - Localization App with a duration of hours minute second in good quality, which was uploaded by the user Rabee Omran 24 August 2022, share the link with friends and acquaintances, this video has already been watched 12,751 times on youtube and it was liked by 369 viewers. Enjoy your viewing!