ajustes de layout
This commit is contained in:
@@ -3,6 +3,7 @@ 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 {
|
||||
|
||||
@@ -14,7 +15,11 @@ class DadosAlunosContainer extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
|
||||
return InkWell(
|
||||
hoverColor: PaletteColors.lightGrey,
|
||||
onTap: (){
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -22,34 +27,37 @@ class DadosAlunosContainer extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 5),
|
||||
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 0),
|
||||
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,
|
||||
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())
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user