ajustes de layout
This commit is contained in:
@@ -26,6 +26,8 @@ class MyApp extends StatelessWidget {
|
||||
Uri? uri = Uri.parse(html.window.location.href);
|
||||
cidade = uri.pathSegments.isNotEmpty ? uri.pathSegments.last : '';
|
||||
|
||||
print('cidade $cidade');
|
||||
|
||||
return MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'CONTROLE DE ACESSO',
|
||||
@@ -48,6 +50,7 @@ class MyApp extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
},
|
||||
initialRoute: '/',
|
||||
routes: {
|
||||
'/$cidade': (_)=> LoginScreen(cidade: cidade),
|
||||
'/home':(context)=> HomeScreen(dados: ModalRoute.of(context)!.settings.arguments as List),
|
||||
|
||||
Reference in New Issue
Block a user