exibindo faltas na tela_faltas.dart
This commit is contained in:
46
lib/componentes/dropdown_turma.dart
Normal file
46
lib/componentes/dropdown_turma.dart
Normal file
@@ -0,0 +1,46 @@
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user