Skip to content

Instantly share code, notes, and snippets.

@boeledi
Last active March 27, 2023 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boeledi/d2822b9b8ff717048d1c7784753442ae to your computer and use it in GitHub Desktop.
Save boeledi/d2822b9b8ff717048d1c7784753442ae to your computer and use it in GitHub Desktop.
void main() => runApp(Application());
class Application extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BlocProvider<AuthenticationBloc>(
blocBuilder: () => AuthenticationBloc(),
blocDispose: (AuthenticationBloc bloc) => bloc.dispose(),
child: MaterialApp(
title: 'BLoC Samples',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: InitializationPage(),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment