ajustes de layout

This commit is contained in:
Reginaldo
2023-08-11 17:12:50 -03:00
parent 1ffaa70fed
commit 4500ee04aa
9 changed files with 197 additions and 125 deletions

View File

@@ -8,15 +8,18 @@ import 'caixa_texto_container.dart';
class DadosAlunosContainer extends StatelessWidget {
AlunoModel alunoModel;
int index;
DadosAlunosContainer({
required this.alunoModel
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,
@@ -24,37 +27,39 @@ class DadosAlunosContainer extends StatelessWidget {
Navigator.pushNamed(context, '/cadastro',arguments: alunoModel);
},
child: Container(
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
color: resto==0?Colors.white:PaletteColors.greySearch,
height: 50,
alignment: Alignment.centerLeft,
child: Row(
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,)
),
],
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())
),
],
),