Ajustando Overflow e nome manifast

parent 79220d05
......@@ -25,6 +25,13 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
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 {
compileSdkVersion 29
......@@ -38,20 +45,26 @@ android {
defaultConfig {
// 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
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
versionCode 1
versionName 'version 1.0.0'
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
flutter {
......
<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
to allow setting breakpoints, to provide hot reload, etc.
-->
......
<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
calls FlutterMain.startInitialization(this); in its onCreate method.
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
......
<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
to allow setting breakpoints, to provide hot reload, etc.
-->
......
class SizedFont {
static const double tamanho = 0.040;
}
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.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 '../../dio.dart';
import '../../usuario/usuario-model.dart';
import '../../usuario/usuario-service.dart';
import '../../../const.dart';
class UrlFoto {
final String url;
......@@ -27,7 +24,6 @@ class UrlFoto {
}
}
class CorpoHome extends StatefulWidget {
final UsuarioModel user;
......@@ -92,8 +88,8 @@ class CorpoHomeState extends State<CorpoHome> {
height: MediaQuery.of(context).size.height * 0.255,
width: MediaQuery.of(context).size.width * 0.35,
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 {
return CircularProgressIndicator();
......@@ -101,18 +97,17 @@ class CorpoHomeState extends State<CorpoHome> {
});
}
Future<UrlFoto> urlFoto() async {
UsuarioModel user = new UsuarioModel();
final response = await http.get(
'https://sis.sig.uema.br/sigaa/resgatarFotoUsuario?cpf=${widget.user.cpf}');
Future<UrlFoto> urlFoto() async {
UsuarioModel user = new UsuarioModel();
final response = await http.get(
'https://sis.sig.uema.br/sigaa/resgatarFotoUsuario?cpf=${widget.user.cpf}');
if (response.statusCode == 200) {
return UrlFoto.fromJson(jsonDecode(response.body));
} else {
throw Exception('Failed to load album');
if (response.statusCode == 200) {
return UrlFoto.fromJson(jsonDecode(response.body));
} else {
throw Exception('Failed to load album');
}
}
}
Widget dadosIniciais() {
var maskeredCpf = MaskedTextController(
......@@ -149,7 +144,7 @@ Future<UrlFoto> urlFoto() async {
"ID FUNCIONAL:",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -158,7 +153,7 @@ Future<UrlFoto> urlFoto() async {
"${widget.user.id_interno}",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......@@ -166,9 +161,6 @@ Future<UrlFoto> urlFoto() async {
],
),
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.01,
),
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
......@@ -177,7 +169,7 @@ Future<UrlFoto> urlFoto() async {
"CPF:",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -186,7 +178,7 @@ Future<UrlFoto> urlFoto() async {
"${maskeredCpf.text}",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......@@ -194,9 +186,6 @@ Future<UrlFoto> urlFoto() async {
],
),
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.01,
),
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
......@@ -205,7 +194,7 @@ Future<UrlFoto> urlFoto() async {
"DATA DE NASCIMENTO:",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -214,7 +203,7 @@ Future<UrlFoto> urlFoto() async {
"${nasc.day.toString().padLeft(2, "0")}/${nasc.month.toString().padLeft(2, "0")}/${nasc.year}",
style: TextStyle(
fontSize:
MediaQuery.of(context).size.width * 0.0485,
MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......@@ -228,12 +217,12 @@ Future<UrlFoto> urlFoto() async {
],
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.025,
height: MediaQuery.of(context).size.height * 0.01,
),
Text(
"NOME:",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -241,7 +230,7 @@ Future<UrlFoto> urlFoto() async {
Text(
"${widget.user.nome}",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......@@ -252,7 +241,7 @@ Future<UrlFoto> urlFoto() async {
Text(
"CARGO:",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -260,7 +249,7 @@ Future<UrlFoto> urlFoto() async {
Text(
"${widget.user.categoria}",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......@@ -271,7 +260,7 @@ Future<UrlFoto> urlFoto() async {
Text(
"LOTAÇÃO:",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
color: Colors.black54),
......@@ -279,7 +268,7 @@ Future<UrlFoto> urlFoto() async {
Text(
"${widget.user.lotacao}",
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.0485,
fontSize: MediaQuery.of(context).size.width * SizedFont.tamanho,
fontFamily: 'Poppins',
fontWeight: FontWeight.w700,
color: Colors.black54),
......
......@@ -72,7 +72,7 @@ class HomeViewState extends State<HomeView> {
if (isLoading == true) {
if (user.error != null) {
return Scaffold(
body: Center(
body: SingleChildScrollView(
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
......@@ -132,7 +132,6 @@ class HomeViewState extends State<HomeView> {
body: SingleChildScrollView(
child: SafeArea(
child: Container(
height: MediaQuery.of(context).size.height,
//width: MediaQuery.of(context).size.width,
decoration:
BoxDecoration(gradient: Tema.Background.gradientePrimario),
......@@ -145,7 +144,12 @@ class HomeViewState extends State<HomeView> {
),
RodapeHome(),
botaoValidar(),
SizedBox(
height: 10,
),
botaoSair(),
SizedBox(
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