Last active
September 30, 2022 15:50
-
-
Save subramanian42/4820b524ccba6a1a9bfbf897645f2772 to your computer and use it in GitHub Desktop.
bloc_builder_example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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