ajustes nas telas configurações
This commit is contained in:
87
lib/screens/configurations/import_sigtap_screen.dart
Normal file
87
lib/screens/configurations/import_sigtap_screen.dart
Normal file
@@ -0,0 +1,87 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../config/color_palette.dart';
|
||||
import '../../config/const_variable.dart';
|
||||
import '../../service/shared_preferences/shared_preferences_service.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> {
|
||||
|
||||
String mode ='';
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
dataSQLite();
|
||||
}
|
||||
|
||||
dataSQLite()async{
|
||||
final PrefService _preferences = PrefService();
|
||||
_preferences.readCacheModel('user', 'password', 'city', 'mode').then((list){
|
||||
setState(() {
|
||||
mode = list[3];
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
|
||||
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: BoxDecoration(
|
||||
color: ColorPalette.grayBackground,
|
||||
image: DecorationImage(
|
||||
fit: BoxFit.fitHeight,
|
||||
image: AssetImage('assets/images/load_image.png'),
|
||||
)
|
||||
),
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/images/logo.PNG',width: width*0.5,),
|
||||
mode == 'homologacao'?Image.asset('assets/images/homologacao.png',width: width*0.4):Container(),
|
||||
mode == 'desenvolvimento'?Image.asset('assets/images/desenvolvimento.png',width: width*0.4):Container(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 50.0),
|
||||
child: Image.asset('assets/images/loading.gif',width: width*0.2,height: height*0.1,),
|
||||
),
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user