Files
controle_acesso_educa/lib/widgets/dados_alunos_container.dart
2023-06-20 19:01:38 -03:00

65 lines
2.0 KiB
Dart

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';
import 'caixa_texto_container.dart';
class DadosAlunosContainer extends StatelessWidget {
AlunoModel alunoModel;
DadosAlunosContainer({
required this.alunoModel
});
@override
Widget build(BuildContext context) {
double width = MediaQuery.of(context).size.width;
return InkWell(
hoverColor: PaletteColors.lightGrey,
onTap: (){
Navigator.pushNamed(context, '/cadastro',arguments: alunoModel);
},
child: Container(
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Container(
width: width*0.2,
child: TextCustom(text: alunoModel.nome.toUpperCase())
),
Container(
width: width*0.1,
child: TextCustom(text: alunoModel.data_nasc.toUpperCase())
),
Container(
width: width*0.08,
child: TextCustom(text: alunoModel.ra.toUpperCase())
),
Container(
width: width*0.05,
child: TextCustom(text: alunoModel.serie.toUpperCase())
),
Container(
width: width*0.05,
child: TextCustom(text: alunoModel.turma.toUpperCase(),textAlign: TextAlign.center,)
),
Container(
width: width*0.25,
child: TextCustom(text: alunoModel.escola.toUpperCase(),size: 14.0,)
),
],
),
],
),
),
);
}
}