consumindo os dados do boletim

This commit is contained in:
Reginaldo
2023-06-27 18:30:51 -03:00
parent 339e256eac
commit f394c5cf32
8 changed files with 144 additions and 326 deletions

View File

@@ -25,24 +25,27 @@ class DrawerCustom extends StatelessWidget {
@override
Widget build(BuildContext context) {
// print(estudanteModelo.dados);
return Container(
padding: EdgeInsets.symmetric(vertical: 20),
width: Dimensoes.width*0.8,
color: Colors.white,
child: ListView(
children: [
CircleAvatar(
radius: 70,
backgroundColor: Colors.grey[300],
child:estudanteModelo.foto==''?Container():
ClipRRect(
child: Image.asset(estudanteModelo.foto),
borderRadius:BorderRadius.circular(70),
)
),
// CircleAvatar(
// radius: 70,
// backgroundColor: Colors.grey[300],
// child:estudanteModelo.foto==''?Container():
// ClipRRect(
// child: Image.asset(estudanteModelo.foto),
// borderRadius:BorderRadius.circular(70),
// )
// ),
Padding(
padding: const EdgeInsets.all(8.0),
child: TextCustom(text: estudanteModelo.nome,fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.center),
padding: const EdgeInsets.symmetric(vertical: 8.0,horizontal: 40),
child: TextCustom(text: estudanteModelo.nome.split(" ").first,fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.start),
),
Container(
height: Dimensoes.height*0.5,
@@ -70,7 +73,7 @@ class DrawerCustom extends StatelessWidget {
icone: LineIcons.clipboardList,
texto: 'Boletim Escolar',
onPressed: ()=>Navigator.push(context, MaterialPageRoute(builder: (context)=>
TelaBoletim(estudanteModelo: estudanteModelo,ano: '2023',turma: '8° ano A'))),
TelaBoletim(estudanteModelo: estudanteModelo,ano: '2023',turma: "${estudanteModelo.dados[estudanteModelo.nroAluno]['DESC_SERIE']} ${estudanteModelo.dados[estudanteModelo.nroAluno]['TURMA']}"))),
),
Container(height: 1,color: PaletaCores.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
ItemDrawer(