ajustes de layout
This commit is contained in:
@@ -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