criada a tela import_sigtap_screen.dart
This commit is contained in:
68
lib/screens/import_sigtap_screen.dart
Normal file
68
lib/screens/import_sigtap_screen.dart
Normal file
@@ -0,0 +1,68 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../utils/color_palette.dart';
|
||||
import '../utils/const_variable.dart';
|
||||
import '../widgets/button_default.dart';
|
||||
import '../widgets/text_default.dart';
|
||||
|
||||
class ImportSigtapScreen extends StatefulWidget {
|
||||
const ImportSigtapScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<ImportSigtapScreen> createState() => _ImportSigtapScreenState();
|
||||
}
|
||||
|
||||
class _ImportSigtapScreenState extends State<ImportSigtapScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
return Scaffold(
|
||||
bottomSheet: Container(
|
||||
color: ColorPalette.appBar,
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.all(15),
|
||||
child: TextDefault(
|
||||
text: 'Etapa 1 de 4 - Teste',
|
||||
color: ColorPalette.white,
|
||||
fontSize: 20,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
body: Container(
|
||||
padding: EdgeInsets.only(top: 100),
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/images/logo.PNG',width: width*0.5,),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
||||
child: TextDefault(
|
||||
text: 'HOMOLOGAÇÃO',
|
||||
color: ColorPalette.red,
|
||||
fontSize: 30,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 50.0),
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0,horizontal: 5),
|
||||
child: TextDefault(
|
||||
text: 'Aguarde enquanto a Importação SIGTAP é realizada.\n\n'
|
||||
'Esse processo pode levar vários minutos dependendo da sua conexão!',
|
||||
maxLines: 5,
|
||||
textAlign: TextAlign.center,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import 'package:rkm/screens/attendance_list_screen.dart';
|
||||
import 'package:rkm/screens/home_screen.dart';
|
||||
import 'package:rkm/screens/login_screen.dart';
|
||||
import '../screens/clear_data_screen.dart';
|
||||
import '../screens/import_sigtap_screen.dart';
|
||||
import '../screens/main_procedures_screen.dart';
|
||||
import '../screens/register_citizen_screen.dart';
|
||||
import '../screens/sinc_data_screen.dart';
|
||||
@@ -16,4 +17,5 @@ var routes = {
|
||||
'/main_procedures': (context) => MainProceduresScreen(),
|
||||
'/sinc_data': (context) => SincDataScreen(),
|
||||
'/clear_data': (context) => ClearDataScreen(),
|
||||
'/import_sigtap': (context) => ImportSigtapScreen(),
|
||||
};
|
||||
@@ -19,7 +19,10 @@ class AlertDialogSettings {
|
||||
child: Column(
|
||||
children: [
|
||||
ItemAlertSettings(
|
||||
onTap: (){},
|
||||
onTap: (){
|
||||
Navigator.pop(context);
|
||||
Navigator.pushNamed(context, '/import_sigtap');
|
||||
},
|
||||
title: 'Importar SIGTAP',
|
||||
body: 'Atulizar as informações do SIGTAP no aplicativo\n'
|
||||
'(com base no ConectaSUS)',
|
||||
|
||||
Reference in New Issue
Block a user