adiciono icone, adicionado nome da tela de usuários, ajustado layout dos dados dos responsáveis

This commit is contained in:
Reginaldo
2023-08-14 15:34:51 -03:00
parent 4500ee04aa
commit 08ebbb0c45
13 changed files with 63 additions and 29 deletions

View File

@@ -106,6 +106,7 @@ class _HomeScreenState extends State<HomeScreen> {
logins.add(
LoginModel(
ID_USUARIO: list[i]['ID_USUARIO'],
NO_USUARIO_SISTEMA:list[i]['NO_USUARIO_SISTEMA']??'',
CHECK:list[i]['CONDICAO']=='1'?true: false,
STATUS: 'CADASTRADO',
CADASTRADO_POR:list[i]['CADASTRADO_POR'],
@@ -136,7 +137,7 @@ class _HomeScreenState extends State<HomeScreen> {
if(list.length!=0){
for(int i=0;list.length>i;i++){
if(list[i]['NO_USERNAME']!='ADMIN'){
logins.add(LoginModel(ID_USUARIO: list[i]['NO_USERNAME'],CHECK: false,STATUS: 'NOVO',CIDADE: widget.dados[0],CADASTRADO_POR: 'NÃO CADASTRADO',DATA: '00/00/0000'));
logins.add(LoginModel(ID_USUARIO: list[i]['NO_USERNAME'],NO_USUARIO_SISTEMA:list[i]['NO_USUARIO_SISTEMA']??'',CHECK: false,STATUS: 'NOVO',CIDADE: widget.dados[0],CADASTRADO_POR: 'NÃO CADASTRADO',DATA: '00/00/0000'));
}
}
}else{
@@ -156,6 +157,7 @@ class _HomeScreenState extends State<HomeScreen> {
'CONDICAO': logins[index].CHECK?"1":"2",
'CADASTRADO_POR': widget.dados[1].toString().toUpperCase(),
'ID_USUARIO' : logins[index].ID_USUARIO,
'NO_USUARIO_SISTEMA': logins[index].NO_USUARIO_SISTEMA,
'CIDADE': widget.dados[0],
'NOVO' : logins[index].STATUS == 'NOVO'? 'SIM':'NAO'
}
@@ -294,9 +296,13 @@ class _HomeScreenState extends State<HomeScreen> {
children: [
SizedBox(width: 30,),
Container(
width: width*0.15,
width: width*0.12,
child: TextCustom(text: 'USUÁRIO',size: 12,fontWeight: FontWeight.bold,color: Colors.black87,),
),
Container(
width: width*0.2,
child: TextCustom(text: 'NOME',size: 12,fontWeight: FontWeight.bold,color: Colors.black87,),
),
Container(
width: width*0.1,
child: TextCustom(text: 'DATA DO CADASTRO',size: 12,fontWeight: FontWeight.bold,color: Colors.black87,),
@@ -317,7 +323,7 @@ class _HomeScreenState extends State<HomeScreen> {
border: Border.all(color: logins.length==0?Colors.white:PaletteColors.grey)
),
margin: EdgeInsets.symmetric(horizontal: width>900?width*0.1:width*0.05),
height: height*0.77,
height: height*0.74,
child: ListView.builder(
itemCount: logins.length,
itemBuilder: (context,index){
@@ -325,6 +331,7 @@ class _HomeScreenState extends State<HomeScreen> {
index: index,
check: logins[index].CHECK,
ID_USUARIO: logins[index].ID_USUARIO,
NO_USUARIO_SISTEMA: logins[index].NO_USUARIO_SISTEMA,
CADASTRADO_POR: logins[index].CADASTRADO_POR,
CIDADE: logins[index].CIDADE,
DATA: logins[index].DATA,
@@ -541,7 +548,7 @@ class _HomeScreenState extends State<HomeScreen> {
),
margin: EdgeInsets.symmetric(horizontal: width>900?width*0.1:width*0.05),
width: width*0.75,
height: height*0.77,
height: height*0.74,
child: ListView.builder(
itemCount: resultadoPesquisa.length,
itemBuilder:(context,index){

View File

@@ -271,24 +271,42 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
TextCustom(text: 'AGUARDE ...')
],
),
):Padding(
):Container(
alignment: Alignment.topLeft,
padding: const EdgeInsets.all(30.0),
child: Column(
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CaixaTextoContainer(texto: widget.alunoModel.nome.toUpperCase(),titulo: 'Estudante'),
CaixaTextoContainer(texto: widget.alunoModel.serie.toUpperCase()+'°',titulo: 'Série',),
CaixaTextoContainer(texto: widget.alunoModel.turma.toUpperCase(),titulo: 'Turma',),
],
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CaixaTextoContainer(texto: widget.alunoModel.ra.toUpperCase(),titulo: 'RA'),
CaixaTextoContainer(texto: widget.alunoModel.escola.toUpperCase(),titulo: 'Escola',),
],
Container(
width: width,
alignment: Alignment.centerLeft,
child: Container(
alignment: Alignment.centerLeft,
width: width*0.7,
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border.all(color: PaletteColors.grey,width: 2)
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CaixaTextoContainer(texto: widget.alunoModel.nome.toUpperCase(),titulo: 'Estudante'),
CaixaTextoContainer(texto: widget.alunoModel.serie.toUpperCase()+'°',titulo: 'Série',),
CaixaTextoContainer(texto: widget.alunoModel.turma.toUpperCase(),titulo: 'Turma',),
],
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CaixaTextoContainer(texto: widget.alunoModel.ra.toUpperCase(),titulo: 'RA'),
CaixaTextoContainer(texto: widget.alunoModel.escola.toUpperCase(),titulo: 'Escola',),
],
),
],
),
),
),
SizedBox(height: 50,),
Row(