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