51 lines
1.3 KiB
Dart
51 lines
1.3 KiB
Dart
import 'package:educa_controle_acesso/models/aluno_model.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 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,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|