criada a tela responsible_register_screen.dart, o model responsavel_model.dart e feitos outros ajustes
This commit is contained in:
@@ -27,7 +27,6 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
|
||||
pesquisa(){
|
||||
pesquisarAluno();
|
||||
|
||||
}
|
||||
|
||||
pesquisarAluno()async{
|
||||
@@ -35,7 +34,13 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
if(controllerPesquisa.text.isNotEmpty){
|
||||
for (int i =0;alunos.length>i;i++) {
|
||||
String nome = alunos[i].nome.toUpperCase();
|
||||
if(nome.contains(controllerPesquisa.text.toUpperCase())){
|
||||
String data = alunos[i].data_nasc.toUpperCase();
|
||||
String ra = alunos[i].ra.toUpperCase();
|
||||
|
||||
if(nome.contains(controllerPesquisa.text.toUpperCase()) ||
|
||||
data.contains(controllerPesquisa.text.toUpperCase()) ||
|
||||
ra.contains(controllerPesquisa.text.toUpperCase())
|
||||
){
|
||||
if(resultadoPesquisa.length<10){
|
||||
resultadoPesquisa.add(alunos[i]);
|
||||
}
|
||||
@@ -63,7 +68,17 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: TextCustom(text: 'Cadastrar responsável',color: Colors.white,),backgroundColor: PaletteColors.grey),
|
||||
appBar: AppBar(
|
||||
title: Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset("assets/images/logoEduca.png",width:width * 0.08,height: height * 0.12)
|
||||
),
|
||||
TextCustom(text: '- Pesquisar aluno',color: Colors.white,),
|
||||
],
|
||||
),
|
||||
backgroundColor: PaletteColors.grey,
|
||||
),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: ListView(
|
||||
@@ -71,7 +86,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
SizedBox(height: height*0.05),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: width>900?width*0.3:width*0.05),
|
||||
child: InputText(controller: controllerPesquisa, width: width*0.2,title: 'Pesquisar Aluno(a)',)
|
||||
child: InputText(controller: controllerPesquisa, width: width*0.2,title: 'Pesquisar Aluno(a)',inputFormatters: [],)
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: width>900?width*0.3:width*0.05),
|
||||
|
||||
Reference in New Issue
Block a user