Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Id_Uema_carteira
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roubert Pimenta Ribeiro
Id_Uema_carteira
Commits
c5e05583
Commit
c5e05583
authored
Jul 15, 2021
by
Roubert Pimenta Ribeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajustando Overflow e nome manifast
parent
79220d05
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
56 deletions
+68
-56
build.gradle
android/app/build.gradle
+23
-10
AndroidManifest.xml
android/app/src/debug/AndroidManifest.xml
+1
-1
AndroidManifest.xml
android/app/src/main/AndroidManifest.xml
+1
-1
MainActivity.kt
android/app/src/main/kotlin/com/uema_iduema/MainActivity.kt
+1
-1
AndroidManifest.xml
android/app/src/profile/AndroidManifest.xml
+1
-1
const.dart
lib/const.dart
+3
-0
corpo-home.dart
lib/src/home/componentes/corpo-home.dart
+29
-40
home-view.dart
lib/src/home/home-view.dart
+6
-2
senha.txt
senha.txt
+3
-0
No files found.
android/app/build.gradle
View file @
c5e05583
...
...
@@ -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
{
...
...
android/app/src/debug/AndroidManifest.xml
View file @
c5e05583
<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.
-->
...
...
android/app/src/main/AndroidManifest.xml
View file @
c5e05583
<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
...
...
android/app/src/main/kotlin/com/
example/
uema_iduema/MainActivity.kt
→
android/app/src/main/kotlin/com/uema_iduema/MainActivity.kt
View file @
c5e05583
package
com.
example.
uema_iduema
package
com.uema_iduema
import
io.flutter.embedding.android.FlutterActivity
...
...
android/app/src/profile/AndroidManifest.xml
View file @
c5e05583
<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.
-->
...
...
lib/const.dart
0 → 100644
View file @
c5e05583
class
SizedFont
{
static
const
double
tamanho
=
0.040
;
}
lib/src/home/componentes/corpo-home.dart
View file @
c5e05583
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.0
25
,
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.0
1
,
),
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
),
...
...
lib/src/home/home-view.dart
View file @
c5e05583
...
...
@@ -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
,
)
...
...
senha.txt
0 → 100644
View file @
c5e05583
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment