ajustado os dados do calendário;

do login com o cpf
This commit is contained in:
Reginaldo
2023-11-15 11:47:05 -03:00
parent 0e0ed5a51c
commit 4f08bdfd27
104 changed files with 475 additions and 183 deletions

View File

@@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
import '../utils/cores.dart';
class AppBarCustom{
@override
PreferredSize appbar(BuildContext context,String title) {
return PreferredSize(
preferredSize: Size.fromHeight(50),
child: AppBar(
backgroundColor: PaletaCores.appBar,
centerTitle: true,
title: TextCustom(text: title,color: Colors.white,fontWeight: FontWeight.bold,size: 20.0,),
),
);
}
}

View File

@@ -1,57 +0,0 @@
import 'package:flutter/material.dart';
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
import 'package:rkm_educa_prof_app/utils/cidades_db.dart';
import '../utils/cores.dart';
class DropDownButtonCity extends StatelessWidget {
var onChanged;
String? select;
bool validator;
String error;
DropDownButtonCity({
required this.onChanged,
required this.select,
required this.error,
required this.validator
});
@override
Widget build(BuildContext context) {
double width = MediaQuery.of(context).size.width;
return Column(
children: [
Container(
width: width,
margin: EdgeInsets.symmetric(vertical: 5),
padding: EdgeInsets.symmetric(vertical: 5),
color:PaletaCores.cinzaInput,
child: DropdownButtonHideUnderline(
child: DropdownButton(
hint: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: TextCustom(text: 'Cidade',size: 15.0),
),
value: select,
items: Cidades().listCidades.map((value) => DropdownMenuItem(
value: value.cidadeFront,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: TextCustom(
text: value.cidadeFront,
color: Colors.black54,
),
),
)
).toList(),
onChanged:onChanged
),
),
),
],
);
}
}

View File

@@ -0,0 +1,46 @@
import 'package:flutter/material.dart';
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
import '../utils/cores.dart';
import '../utils/dimensoes.dart';
class ItemAgenda extends StatelessWidget {
int cor;
String titulo;
ItemAgenda({
required this.cor,
required this.titulo,
});
@override
Widget build(BuildContext context) {
return Container(
color: PaletaCores.branco,
padding: const EdgeInsets.symmetric(horizontal: 5.0,vertical: 0),
child: Column(
children: [
Container(
width: Dimensoes.width*0.95,
height: 30,
padding: const EdgeInsets.symmetric(horizontal: 0.0),
child: Padding(
padding: EdgeInsets.symmetric(vertical: 5),
child: Row(
children: [
Container(
width: Dimensoes.width*0.2,
child: Icon(Icons.circle,color: Color(cor),)
),
TextCustom(text: titulo),
],
),
),
),
Container(width: double.infinity,height: 2,color: PaletaCores.divider,)
],
),
);
}
}