--

Thank you Fakher,

Regarding your question, there're many scenarios and solutions for that case, and one of them is that you can inject the ArticlesCubit with let's say AuthCubit, and when you send let's say an API request in order to fetch the Article's data here you can check whether this article needs Auth or not and then you can send back (emit) a state to the UI in which then you could see if it requires Auth by using BlocListener in order to show some hint Dialog or so on.

--

--

AbdulMuaz Aqeel
AbdulMuaz Aqeel

Written by AbdulMuaz Aqeel

Senior Software Engineer at Talabatey (I Stand with Palestine 🇵🇸)

No responses yet