import 'package:educa_controle_acesso/models/aluno_model.dart'; import 'package:educa_controle_acesso/screens/responsible_register_screen.dart'; import 'package:educa_controle_acesso/widgets/text_custom.dart'; import 'package:flutter/material.dart'; import '../utils/colors.dart'; class DadosAlunosContainer extends StatelessWidget { AlunoModel alunoModel; DadosAlunosContainer({ required this.alunoModel }); @override Widget build(BuildContext context) { return InkWell( onTap: (){ Navigator.push( context, MaterialPageRoute(builder: (context) => ResponsibleRegisterScreen(alunoModel: alunoModel)), ); }, child: Container( padding: EdgeInsets.symmetric(vertical: 10,horizontal: 5), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ TextCustom( text: 'Nome: '+alunoModel.nome, color: PaletteColors.grey, size: 20, ), TextCustom( text: 'Data de Nascimento: '+alunoModel.data_nasc, color: PaletteColors.grey, size: 15, ), TextCustom( text: 'RA: '+alunoModel.ra, color: PaletteColors.grey, size: 15, ), TextCustom( text: 'Turma: '+alunoModel.serie+'° ANO '+alunoModel.turma, color: PaletteColors.grey, size: 15, ), TextCustom( text: 'Escola: '+alunoModel.escola, color: PaletteColors.grey, size: 15, ), ], ), ), ); } }