import 'package:flutter/material.dart'; import 'package:rkm_educa_prof_app/componentes/text_custom.dart'; class DropdownTurma extends StatelessWidget { String titulo; String? seleciona; List itens; var onChanged; double hightLine; DropdownTurma({ required this.titulo, required this.seleciona, required this.itens, required this.onChanged, required this.hightLine, }); @override Widget build(BuildContext context) { return Container( height: hightLine, child: Row( children: [ TextCustom(text: titulo,fontWeight: FontWeight.bold), SizedBox(width: 10,), DropdownButtonHideUnderline( child: DropdownButton( hint: TextCustom(text: 'SELECIONE',size: 12.0,), value: seleciona, items: itens.map((value) => DropdownMenuItem( value: value, child: TextCustom( text: value, size: 12.0, color: Colors.black54, ), ) ).toList(), onChanged: onChanged, ), ), ], ), ); } }