ajustado para receber o nome da escola e idade do aluno
This commit is contained in:
@@ -1,24 +1,30 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm_educa_app/componentes/text_custom.dart';
|
||||
import 'package:rkm_educa_app/utils/dimensoes.dart';
|
||||
|
||||
class ItemModelo extends StatelessWidget {
|
||||
String texto;
|
||||
String titulo;
|
||||
double widthCustom;
|
||||
|
||||
ItemModelo({
|
||||
required this.texto,
|
||||
required this.titulo,
|
||||
this.widthCustom = 0.65
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 10),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
TextCustom(text: titulo,size: 14.0,fontWeight: FontWeight.bold,),
|
||||
TextCustom(text: titulo,size: 14.0,fontWeight: FontWeight.bold,maxLines: 2,),
|
||||
SizedBox(width: 10,),
|
||||
TextCustom(text: texto,size: 14.0),
|
||||
Container(
|
||||
width: Dimensoes.width*widthCustom,
|
||||
child: TextCustom(text: texto,size: 14.0,maxLines: 3,)),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user