Created
August 20, 2020 12:10
-
-
Save guilhermecarvalhocarneiro/98bcf0dc53fad24fc6a56f7b87f9daf6 to your computer and use it in GitHub Desktop.
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 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