Files
controle_acesso_educa/lib/widgets/dados_alunos_container.dart
2023-06-01 16:34:36 -03:00

68 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.push(
context,
MaterialPageRoute(builder: (context) => ResponsibleRegisterScreen(alunoModel: 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())
),
Container(
width: width*0.20,
child: TextCustom(text: alunoModel.escola.toUpperCase())
),
],
),
],
),
),
);
}
}