Skip to content

Instantly share code, notes, and snippets.

@subramanian42
Last active September 30, 2022 15:50
Show Gist options
  • Save subramanian42/4820b524ccba6a1a9bfbf897645f2772 to your computer and use it in GitHub Desktop.
Save subramanian42/4820b524ccba6a1a9bfbf897645f2772 to your computer and use it in GitHub Desktop.
bloc_builder_example
class ExampleScreen extends StatelessWidget {
const ExampleScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return BlocBuilder<ExampleBloc, ExampleState>(
builder: (context, state) {
if( state is DataLoading)
{ return const CircularProgressIndicator();
}
return Container();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment