68 lines
2.1 KiB
Dart
68 lines
2.1 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(),textAlign: TextAlign.center,)
|
|
),
|
|
Container(
|
|
width: width*0.25,
|
|
child: TextCustom(text: alunoModel.escola.toUpperCase(),size: 14.0,)
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|