ajustes nos dados do contatos

This commit is contained in:
Reginaldo
2023-06-21 15:23:20 -03:00
parent 9eb271c905
commit bb129ba310
2 changed files with 47 additions and 46 deletions

View File

@@ -1,11 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:rkm_educa_app/utils/cores.dart';
import 'package:rkm_educa_app/componentes/buttom_custom.dart';
import 'package:rkm_educa_app/componentes/text_custom.dart';
import 'package:rkm_educa_app/utils/dimensoes.dart'; import 'package:rkm_educa_app/utils/dimensoes.dart';
class AlertDefault{ class AlertDefault{
alert(BuildContext context,String title,String textButtom,Widget subtitle,double altura) { alert(BuildContext context,double altura,Widget subtitle) {
return showGeneralDialog( return showGeneralDialog(
context: context, context: context,
@@ -14,27 +11,18 @@ class AlertDefault{
barrierColor: Colors.black45, barrierColor: Colors.black45,
transitionDuration: const Duration(milliseconds: 200), transitionDuration: const Duration(milliseconds: 200),
pageBuilder: (BuildContext buildContext,Animation animation,Animation secondaryAnimation) { pageBuilder: (BuildContext buildContext,Animation animation,Animation secondaryAnimation) {
return Container( return Center(
width: Dimensoes.width, child: Card(
height: Dimensoes.height, elevation: 5,
padding: EdgeInsets.all(20), shape: RoundedRectangleBorder(
color: Colors.white, borderRadius: BorderRadius.circular(15.0),
child: Column( ),
mainAxisSize: MainAxisSize.min, child: Container(
mainAxisAlignment: MainAxisAlignment.center, width: Dimensoes.width,
children: [ height: Dimensoes.height*altura,
subtitle, padding: EdgeInsets.all(20),
ButtonCustom( child: subtitle,
onPressed: ()=>Navigator.pop(context), ),
text: textButtom,
widthCustom: 0.2,
heightCustom: 0.05,
size: 14,
colorText: Colors.white,
colorBorder: PaletaCores.cinza,
colorButton: PaletaCores.cinza,
)
],
), ),
); );
}); });

View File

@@ -5,6 +5,7 @@ import 'package:rkm_educa_app/componentes/alert_default.dart';
import 'package:rkm_educa_app/componentes/appbar_custom.dart'; import 'package:rkm_educa_app/componentes/appbar_custom.dart';
import 'package:rkm_educa_app/componentes/drawer_custom.dart'; import 'package:rkm_educa_app/componentes/drawer_custom.dart';
import 'package:rkm_educa_app/utils/dimensoes.dart'; import 'package:rkm_educa_app/utils/dimensoes.dart';
import '../componentes/buttom_custom.dart';
import '../componentes/item_modelo.dart'; import '../componentes/item_modelo.dart';
class TelaPerfil extends StatefulWidget { class TelaPerfil extends StatefulWidget {
@@ -47,28 +48,40 @@ class _TelaPerfilState extends State<TelaPerfil> {
onPressed: ()=> onPressed: ()=>
AlertDefault().alert( AlertDefault().alert(
context, context,
'', 0.3,
'Fechar', Container(
Column( height: Dimensoes.height*0.2,
mainAxisSize: MainAxisSize.min, child: Column(
children: [ mainAxisSize: MainAxisSize.min,
widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_DIRETOR']=='' children: [
?Container() widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_DIRETOR']==''
:ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_DIRETOR'], titulo: 'Diretor(a)',widthCustom: 0.65), ?Container()
widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_VICE_DIRETOR']==''?Container() :ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_DIRETOR'], titulo: 'Diretor(a)',widthCustom: 0.65),
:ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_VICE_DIRETOR'], titulo: 'Vice - Diretor(a)',widthCustom: 0.6), widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_VICE_DIRETOR']==''?Container()
widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_COORDENADOR']=='' :ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_VICE_DIRETOR'], titulo: 'Vice - Diretor(a)',widthCustom: 0.6),
?Container() widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_COORDENADOR']==''
:ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_COORDENADOR'], titulo: 'Coordenador(a)',widthCustom: 0.6), ?Container()
widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_EMAIL']=='' :ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['TX_COORDENADOR'], titulo: 'Coordenador(a)',widthCustom: 0.6),
?Container() widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_EMAIL']==''
:ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_EMAIL'], titulo: 'E - mail',widthCustom: 0.6), ?Container()
widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_SITE']=='' :ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_EMAIL'], titulo: 'E - mail',widthCustom: 0.6),
?Container() widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_SITE']==''
:ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_SITE'], titulo: 'Site',widthCustom: 0.6,), ?Container()
], :ItemModelo(texto: widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['NO_SITE'], titulo: 'Site',widthCustom: 0.6,),
Spacer(),
ButtonCustom(
onPressed: ()=>Navigator.pop(context),
text: 'Fechar',
widthCustom: 0.2,
heightCustom: 0.05,
size: 14,
colorText: Colors.white,
colorBorder: PaletaCores.cinza,
colorButton: PaletaCores.cinza,
)
],
),
), ),
0.1
), ),
icon: Icon(Icons.visibility,color: PaletaCores.cinza), icon: Icon(Icons.visibility,color: PaletaCores.cinza),
padding: EdgeInsets.all(0), padding: EdgeInsets.all(0),