novo projeto
This commit is contained in:
50
lib/widgets/dados_alunos_container.dart
Normal file
50
lib/widgets/dados_alunos_container.dart
Normal file
@@ -0,0 +1,50 @@
|
||||
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,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user