-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.dart
30 lines (28 loc) · 886 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import 'package:flutter/material.dart'
show BuildContext, MaterialApp, StatelessWidget, Widget, runApp;
import 'package:layout/SelecionarDispositivo.dart';
import 'package:layout/HomePage.dart';
import 'package:provider/provider.dart';
import 'provider/StatusConexaoProvider.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MultiProvider(
providers: [
ChangeNotifierProvider<StatusConexaoProvider>.value(
value: StatusConexaoProvider()),
],
child: MaterialApp(
title: 'Xerocasa',
initialRoute: '/',
routes: {
'/': (context) => HomePage(),
'/selectDevice': (context) => const SelecionarDispositivoPage(),
},
));
}
}