Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created August 20, 2020 12:10
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 guilhermecarvalhocarneiro/98bcf0dc53fad24fc6a56f7b87f9daf6 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/98bcf0dc53fad24fc6a56f7b87f9daf6 to your computer and use it in GitHub Desktop.
...
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MultiBlocProvider(
providers: [
BlocProvider(
create: (context) => UsuarioCubit(),
),
],
child: MyHomePage(title: 'Cubit Provider'),
),
);
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment