Skip to content

Commit

Permalink
configurando home screen para mostrar mapa
Browse files Browse the repository at this point in the history
  • Loading branch information
itMatos committed Sep 9, 2024
1 parent 0ad3716 commit b98314c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,20 @@ class Application extends StatelessWidget {
final Future<FirebaseApp> _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<DataBloc>(context))),

BlocProvider(create: (context) => LoginBloc(auth: GoogleAuth())),
BlocProvider(
create: (context) =>
Expand All @@ -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)),
Expand Down

0 comments on commit b98314c

Please sign in to comment.