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; int index; DadosAlunosContainer({ required this.alunoModel, required this.index }); @override Widget build(BuildContext context) { double width = MediaQuery.of(context).size.width; double resto = index%2; return InkWell( hoverColor: PaletteColors.lightGrey, onTap: (){ Navigator.pushNamed(context, '/cadastro',arguments: alunoModel); }, child: Container( color: resto==0?Colors.white:PaletteColors.greySearch, height: 50, alignment: Alignment.centerLeft, child: Row( children: [ Container( width: width*0.2, child: Row( children: [ SizedBox(width: 10,), 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.07, child: TextCustom(text: alunoModel.serie.toUpperCase()) ), Container( width: width*0.07, child: TextCustom(text: alunoModel.turma.toUpperCase()) ), Container( width: width*0.25, child: TextCustom(text: alunoModel.escola.toUpperCase()) ), ], ), ), ); } }