Files
rkm_educa_app/lib/componentes/item_modelo.dart

33 lines
864 B
Dart

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 Container(
padding: EdgeInsets.symmetric(vertical: 10),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
TextCustom(text: titulo,size: 14.0,fontWeight: FontWeight.bold,maxLines: 2,),
SizedBox(width: 10,),
Container(
width: Dimensoes.width*widthCustom,
child: TextCustom(text: texto,size: 14.0,maxLines: 3,)),
],
),
);
}
}