ajustes de layout
This commit is contained in:
@@ -189,7 +189,6 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
text: showEscola?'Cadastrar Pais':'Cadastrar Usuários',
|
||||
fontSize: 15,
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
colorText: PaletteColors.white,
|
||||
colorBorder: PaletteColors.white
|
||||
@@ -218,7 +217,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: width>900?width*0.1:width*0.05),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
InputText(
|
||||
hint: 'Pesquisar por login do usuário'.toUpperCase(),
|
||||
@@ -228,9 +227,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
fontSize: 14,
|
||||
colorBackground: Colors.white,
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
ButtonCustom(
|
||||
widthCustom: 0.05,
|
||||
heightCustom: 0.063,
|
||||
text: "PESQUISAR",
|
||||
fontSize: 10.0,
|
||||
colorText: PaletteColors.white,
|
||||
@@ -248,9 +247,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
}
|
||||
},
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
ButtonCustom(
|
||||
widthCustom: 0.05,
|
||||
heightCustom: 0.063,
|
||||
text: "LIMPAR",
|
||||
fontSize: 10.0,
|
||||
colorText: PaletteColors.white,
|
||||
@@ -334,7 +333,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: width>900?width*0.1:width*0.05),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
InputText(
|
||||
hint: 'Pesquisar por nome do aluno(a)'.toUpperCase(),
|
||||
@@ -344,9 +343,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
fontSize: 14,
|
||||
colorBackground: Colors.white,
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
ButtonCustom(
|
||||
widthCustom: 0.05,
|
||||
heightCustom: 0.063,
|
||||
text: "PESQUISAR",
|
||||
fontSize: 10.0,
|
||||
colorText: PaletteColors.white,
|
||||
@@ -363,9 +362,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
}
|
||||
},
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
ButtonCustom(
|
||||
widthCustom: 0.05,
|
||||
heightCustom: 0.063,
|
||||
text: "LIMPAR",
|
||||
fontSize: 10.0,
|
||||
colorText: PaletteColors.white,
|
||||
|
||||
@@ -24,11 +24,11 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
//las1594@@
|
||||
//SENHAS CRIPTOGRAFADAS PORQUE FORMA ALTERADAS, SENHAS NOVAS USUÁRIO E SENHA SÃO IGUAIS
|
||||
//ibueno
|
||||
// final inputLogin = TextEditingController(text: 'admin');
|
||||
// final inputSenha = TextEditingController(text: 'las1594@@');
|
||||
final inputLogin = TextEditingController(text: 'admin');
|
||||
final inputSenha = TextEditingController(text: 'las1594@@');
|
||||
// final inputCodigo = TextEditingController(text: 'e003');
|
||||
final inputLogin = TextEditingController();
|
||||
final inputSenha = TextEditingController();
|
||||
// final inputLogin = TextEditingController();
|
||||
// final inputSenha = TextEditingController();
|
||||
final inputCodigo = TextEditingController();
|
||||
bool carregando = false;
|
||||
List listCodigo = [];
|
||||
@@ -221,7 +221,6 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
],
|
||||
):ButtonCustom(
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.07,
|
||||
text: "ENTRAR",
|
||||
fontSize: 14.0,
|
||||
colorText: PaletteColors.white,
|
||||
|
||||
@@ -386,7 +386,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
}),
|
||||
text: 'Cancelar',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
@@ -400,7 +399,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
},
|
||||
text: 'Salvar',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.green,
|
||||
colorButton: PaletteColors.green,
|
||||
@@ -452,7 +450,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
onPressed:()=>Navigator.pop(context),
|
||||
text: 'NÃO',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.bgColor,
|
||||
colorButton: PaletteColors.bgColor,
|
||||
@@ -462,7 +459,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
onPressed:()=>excluirResponsavel(index, responsaveis[index].CPF),
|
||||
text: 'SIM',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
@@ -484,7 +480,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
onPressed:()=>Navigator.pop(context),
|
||||
text: 'NÃO',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.bgColor,
|
||||
colorButton: PaletteColors.bgColor,
|
||||
@@ -501,7 +496,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
},
|
||||
text: 'SIM',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
@@ -523,7 +517,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
onPressed:()=>Navigator.pop(context),
|
||||
text: 'NÃO',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.bgColor,
|
||||
colorButton: PaletteColors.bgColor,
|
||||
@@ -539,7 +532,6 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
},
|
||||
text: 'SIM',
|
||||
widthCustom: 0.1,
|
||||
heightCustom: 0.05,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
|
||||
@@ -8,7 +8,7 @@ class ButtonCustom extends StatelessWidget{
|
||||
final Color colorText;
|
||||
final Color colorBorder;
|
||||
final widthCustom;
|
||||
final heightCustom;
|
||||
final double height;
|
||||
|
||||
ButtonCustom({
|
||||
required this.onPressed,
|
||||
@@ -18,17 +18,16 @@ ButtonCustom({
|
||||
required this.colorText,
|
||||
required this.colorBorder,
|
||||
this.widthCustom = 1.0,
|
||||
this.heightCustom = 1.0
|
||||
this.height = 42.0,
|
||||
});
|
||||
@override
|
||||
Widget build (BuildContext context) {
|
||||
double width =MediaQuery.of(context).size.width;
|
||||
double height =MediaQuery.of(context).size.height;
|
||||
|
||||
return ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: colorButton,
|
||||
minimumSize: Size(width*widthCustom! , height*heightCustom!),
|
||||
minimumSize: Size(width*widthCustom! , height),
|
||||
side: BorderSide(width: 2,color : colorBorder,),
|
||||
),
|
||||
onPressed: onPressed,
|
||||
|
||||
@@ -45,30 +45,41 @@ class DadosResponsaveisContainer extends StatelessWidget {
|
||||
CaixaTextoContainer(texto: responsavelModel.NOME,titulo: 'Nome',widthCustom: 0.15),
|
||||
CaixaTextoContainer(texto: responsavelModel.PARENTESCO,titulo: 'Parentesco',widthCustom: 0.1,),
|
||||
responsavelModel.CPF!='' && responsavelModel.SENHA!=''?Container(
|
||||
alignment: Alignment.bottomCenter,
|
||||
height: 12,
|
||||
alignment: Alignment.center,
|
||||
margin: EdgeInsets.all(5),
|
||||
child: Icon(Icons.check_circle,color: Colors.green,),
|
||||
):Container(),
|
||||
ButtonCustom(
|
||||
text: 'Resetar Senha',
|
||||
fontSize: 14.0,
|
||||
colorButton: PaletteColors.grey,
|
||||
colorText: PaletteColors.white,
|
||||
colorBorder: PaletteColors.grey,
|
||||
onPressed:resetarSenha,
|
||||
heightCustom: 0.05,
|
||||
widthCustom: 0.05,
|
||||
):Container(height: 12,width: 30,),
|
||||
Column(
|
||||
children: [
|
||||
SizedBox(height: 12,),
|
||||
ButtonCustom(
|
||||
text: 'Resetar Senha',
|
||||
fontSize: 14.0,
|
||||
colorButton: PaletteColors.grey,
|
||||
colorText: PaletteColors.white,
|
||||
colorBorder: PaletteColors.grey,
|
||||
onPressed:resetarSenha,
|
||||
widthCustom: 0.05,
|
||||
height: 39,
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
responsavelModel.CPF!='' && responsavelModel.SENHA!=''?ButtonCustom(
|
||||
text: 'Bloquear Responsável',
|
||||
fontSize: 14.0,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
colorText: PaletteColors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
onPressed:bloquearSenha,
|
||||
heightCustom: 0.05,
|
||||
widthCustom: 0.05,
|
||||
SizedBox(width: 15,),
|
||||
responsavelModel.CPF!='' && responsavelModel.SENHA!=''?Column(
|
||||
children: [
|
||||
SizedBox(height: 12,),
|
||||
ButtonCustom(
|
||||
text: 'Bloquear Responsável',
|
||||
fontSize: 14.0,
|
||||
colorButton: PaletteColors.primaryColor,
|
||||
colorText: PaletteColors.white,
|
||||
colorBorder: PaletteColors.primaryColor,
|
||||
onPressed:bloquearSenha,
|
||||
widthCustom: 0.05,
|
||||
height: 39,
|
||||
),
|
||||
],
|
||||
):Container()
|
||||
],
|
||||
),
|
||||
|
||||
@@ -43,7 +43,8 @@ class InputText extends StatelessWidget {
|
||||
Container(
|
||||
color:colorBackground,
|
||||
width: width,
|
||||
margin: EdgeInsets.only(bottom: 5),
|
||||
height: 35,
|
||||
margin: EdgeInsets.only(bottom: 0),
|
||||
child: TextFormField(
|
||||
inputFormatters: inputFormatters,
|
||||
keyboardType: textInputType,
|
||||
@@ -52,6 +53,7 @@ class InputText extends StatelessWidget {
|
||||
obscureText: this.obscure,
|
||||
controller: this.controller,
|
||||
enabled: enable,
|
||||
textAlignVertical: TextAlignVertical.bottom,
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: this.fontSize,
|
||||
|
||||
Reference in New Issue
Block a user