Skip to content

Instantly share code, notes, and snippets.

@AbedElazizShe
Created February 1, 2022 16:41
Show Gist options
  • Save AbedElazizShe/f192d9c83e26398db4b163ad8db62795 to your computer and use it in GitHub Desktop.
Save AbedElazizShe/f192d9c83e26398db4b163ad8db62795 to your computer and use it in GitHub Desktop.
BlocBuilder<ArticlesCubit, ArticlesState>(
bloc: _articlesCubit,
builder: (BuildContext context, ArticlesState state) {
if (state is ArticlesLoadingState) {
return const Center(child: CircularProgressIndicator());
} else if (state is ArticlesLoadedState) {
// Load articles
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment