Ajustando Overflow e nome manifast

parent 79220d05
...@@ -25,6 +25,13 @@ apply plugin: 'com.android.application' ...@@ -25,6 +25,13 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android { android {
compileSdkVersion 29 compileSdkVersion 29
...@@ -38,20 +45,26 @@ android { ...@@ -38,20 +45,26 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.uema_iduema" applicationId "com.uema_iduema"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 29 targetSdkVersion 29
versionCode flutterVersionCode.toInteger() versionCode 1
versionName flutterVersionName versionName 'version 1.0.0'
} }
buildTypes { signingConfigs {
release { release {
// TODO: Add your own signing config for the release build. keyAlias keystoreProperties['keyAlias']
// Signing with the debug keys for now, so `flutter run --release` works. keyPassword keystoreProperties['keyPassword']
signingConfig signingConfigs.debug storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
} storePassword keystoreProperties['storePassword']
} }
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
} }
flutter { flutter {
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.uema_iduema"> package="com.uema_iduema">
<!-- Flutter needs it to communicate with the running application <!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
--> -->
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.uema_iduema"> package="com.uema_iduema">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that <!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method. calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide
......
package com.example.uema_iduema package com.uema_iduema
import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.android.FlutterActivity
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.uema_iduema"> package="com.uema_iduema">
<!-- Flutter needs it to communicate with the running application <!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
--> -->
......
class SizedFont {
static const double tamanho = 0.040;
}
import 'dart:convert'; import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_masked_text/flutter_masked_text.dart'; import 'package:flutter_masked_text/flutter_masked_text.dart';
import 'package:image_picker/image_picker.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:uema_iduema/src/home/componentes/shared-prefs.dart';
import 'package:uema_iduema/src/usuario/imagen_service.dart';
import 'package:uema_iduema/src/usuario/usuario-model.dart';
import 'package:uema_iduema/src/usuario/usuario-service.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import '../../dio.dart';
import '../../usuario/usuario-model.dart';
import '../../usuario/usuario-service.dart';
import '../../../const.dart';
class UrlFoto { class UrlFoto {
final String url; final String url;
...@@ -27,7 +24,6 @@ class UrlFoto { ...@@ -27,7 +24,6 @@ class UrlFoto {
} }
} }
class CorpoHome extends StatefulWidget { class CorpoHome extends StatefulWidget {
final UsuarioModel user; final UsuarioModel user;
...@@ -92,8 +88,8 @@ class CorpoHomeState extends State<CorpoHome> { ...@@ -92,8 +88,8 @@ class CorpoHomeState extends State<CorpoHome> {
height: MediaQuery.of(context).size.height * 0.255, height: MediaQuery.of(context).size.height * 0.255,
width: MediaQuery.of(context).size.width * 0.35, width: MediaQuery.of(context).size.width * 0.35,
child: Image.network( child: Image.network(
'https://sis.sig.uema.br/' + snapshot.data.url.toString(), fit: BoxFit.cover 'https://sis.sig.uema.br/' + snapshot.data.url.toString(),
), fit: BoxFit.cover),
); );
} else { } else {
return CircularProgressIndicator(); return CircularProgressIndicator();
...@@ -101,18 +97,17 @@ class CorpoHomeState extends State<CorpoHome> { ...@@ -101,18 +97,17 @@ class CorpoHomeState extends State<CorpoHome> {
}); });
} }
Future<UrlFoto> urlFoto() async {
Future<UrlFoto> urlFoto() async { UsuarioModel user = new UsuarioModel();
UsuarioModel user = new UsuarioModel(); final response = await http.get(
final response = await http.get( 'https://sis.sig.uema.br/sigaa/resgatarFotoUsuario?cpf=${widget.user.cpf}');
'https://sis.sig.uema.br/sigaa/resgatarFotoUsuario?cpf=${widget.user.cpf}');
if (response.statusCode == 200) { if (response.statusCode == 200) {
return UrlFoto.fromJson(jsonDecode(response.body)); return UrlFoto.fromJson(jsonDecode(response.body));
} else { } else {
throw Exception('Failed to load album'); throw Exception('Failed to load album');
}
} }
}
Widget dadosIniciais() { Widget dadosIniciais() {
var maskeredCpf = MaskedTextController( var maskeredCpf = MaskedTextController(
...@@ -149,7 +144,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -149,7 +144,7 @@ Future<UrlFoto> urlFoto() async {
"ID FUNCIONAL:", "ID FUNCIONAL:",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -158,7 +153,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -158,7 +153,7 @@ Future<UrlFoto> urlFoto() async {
"${widget.user.id_interno}", "${widget.user.id_interno}",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
...@@ -166,9 +161,6 @@ Future<UrlFoto> urlFoto() async { ...@@ -166,9 +161,6 @@ Future<UrlFoto> urlFoto() async {
], ],
), ),
), ),
SizedBox(
height: MediaQuery.of(context).size.height * 0.01,
),
Container( Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -177,7 +169,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -177,7 +169,7 @@ Future<UrlFoto> urlFoto() async {
"CPF:", "CPF:",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -186,7 +178,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -186,7 +178,7 @@ Future<UrlFoto> urlFoto() async {
"${maskeredCpf.text}", "${maskeredCpf.text}",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
...@@ -194,9 +186,6 @@ Future<UrlFoto> urlFoto() async { ...@@ -194,9 +186,6 @@ Future<UrlFoto> urlFoto() async {
], ],
), ),
), ),
SizedBox(
height: MediaQuery.of(context).size.height * 0.01,
),
Container( Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -205,7 +194,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -205,7 +194,7 @@ Future<UrlFoto> urlFoto() async {
"DATA DE NASCIMENTO:", "DATA DE NASCIMENTO:",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -214,7 +203,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -214,7 +203,7 @@ Future<UrlFoto> urlFoto() async {
"${nasc.day.toString().padLeft(2, "0")}/${nasc.month.toString().padLeft(2, "0")}/${nasc.year}", "${nasc.day.toString().padLeft(2, "0")}/${nasc.month.toString().padLeft(2, "0")}/${nasc.year}",
style: TextStyle( style: TextStyle(
fontSize: fontSize:
MediaQuery.of(context).size.width * 0.0485, MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
...@@ -228,12 +217,12 @@ Future<UrlFoto> urlFoto() async { ...@@ -228,12 +217,12 @@ Future<UrlFoto> urlFoto() async {
], ],
), ),
SizedBox( SizedBox(
height: MediaQuery.of(context).size.height * 0.025, height: MediaQuery.of(context).size.height * 0.01,
), ),
Text( Text(
"NOME:", "NOME:",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -241,7 +230,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -241,7 +230,7 @@ Future<UrlFoto> urlFoto() async {
Text( Text(
"${widget.user.nome}", "${widget.user.nome}",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
...@@ -252,7 +241,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -252,7 +241,7 @@ Future<UrlFoto> urlFoto() async {
Text( Text(
"CARGO:", "CARGO:",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -260,7 +249,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -260,7 +249,7 @@ Future<UrlFoto> urlFoto() async {
Text( Text(
"${widget.user.categoria}", "${widget.user.categoria}",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
...@@ -271,7 +260,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -271,7 +260,7 @@ Future<UrlFoto> urlFoto() async {
Text( Text(
"LOTAÇÃO:", "LOTAÇÃO:",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Colors.black54), color: Colors.black54),
...@@ -279,7 +268,7 @@ Future<UrlFoto> urlFoto() async { ...@@ -279,7 +268,7 @@ Future<UrlFoto> urlFoto() async {
Text( Text(
"${widget.user.lotacao}", "${widget.user.lotacao}",
style: TextStyle( style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485, fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Colors.black54), color: Colors.black54),
......
...@@ -72,7 +72,7 @@ class HomeViewState extends State<HomeView> { ...@@ -72,7 +72,7 @@ class HomeViewState extends State<HomeView> {
if (isLoading == true) { if (isLoading == true) {
if (user.error != null) { if (user.error != null) {
return Scaffold( return Scaffold(
body: Center( body: SingleChildScrollView(
child: Container( child: Container(
height: MediaQuery.of(context).size.height, height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
...@@ -132,7 +132,6 @@ class HomeViewState extends State<HomeView> { ...@@ -132,7 +132,6 @@ class HomeViewState extends State<HomeView> {
body: SingleChildScrollView( body: SingleChildScrollView(
child: SafeArea( child: SafeArea(
child: Container( child: Container(
height: MediaQuery.of(context).size.height,
//width: MediaQuery.of(context).size.width, //width: MediaQuery.of(context).size.width,
decoration: decoration:
BoxDecoration(gradient: Tema.Background.gradientePrimario), BoxDecoration(gradient: Tema.Background.gradientePrimario),
...@@ -145,7 +144,12 @@ class HomeViewState extends State<HomeView> { ...@@ -145,7 +144,12 @@ class HomeViewState extends State<HomeView> {
), ),
RodapeHome(), RodapeHome(),
botaoValidar(), botaoValidar(),
SizedBox(
height: 10,
),
botaoSair(), botaoSair(),
SizedBox( SizedBox(
height: MediaQuery.of(context).size.height * 0.025, height: MediaQuery.of(context).size.height * 0.025,
) )
......
keytool -genkey -v -keystor C:\src\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
labntiuema
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment