From b98314c1f495b09d241fb10bdcb9712cca9d1326 Mon Sep 17 00:00:00 2001 From: Italo Matos Date: Mon, 9 Sep 2024 20:36:53 -0300 Subject: [PATCH] configurando home screen para mostrar mapa --- lib/main.dart | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 95342ec..13bf39d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -58,21 +58,20 @@ class Application extends StatelessWidget { final Future _initialization = Firebase.initializeApp(); @override Widget build(BuildContext context) { - // UsbManager usbManager = UsbManager(); - // FirestoreServices fireServices = FirestoreServices(); + UsbManager usbManager = UsbManager(); + FirestoreServices fireServices = FirestoreServices(); return MultiBlocProvider( providers: [ BlocProvider(create: (context) => LoginBloc(auth: GoogleAuth())), - // BlocProvider( - // create: (context) => - // DataBloc(usbManager: usbManager, fireServices: fireServices)), - // BlocProvider( - // create: (context) => MapDataBloc( - // usbManager: usbManager, fireServices: fireServices)), + BlocProvider( + create: (context) => + DataBloc(usbManager: usbManager, fireServices: fireServices)), + BlocProvider( + create: (context) => MapDataBloc( + usbManager: usbManager, fireServices: fireServices)), BlocProvider( create: (context) => TerminalBloc(dataBloc: BlocProvider.of(context))), - BlocProvider(create: (context) => LoginBloc(auth: GoogleAuth())), BlocProvider( create: (context) => @@ -91,7 +90,7 @@ class Application extends StatelessWidget { return MaterialApp( showPerformanceOverlay: false, // shows fps debugShowCheckedModeBanner: false, - title: 'Main Screen', + title: 'Zenith Monitor Main Screen', theme: ThemeData( bottomSheetTheme: BottomSheetThemeData( backgroundColor: Colors.black.withOpacity(0)),