ajustes de layout

This commit is contained in:
Reginaldo
2023-08-08 09:35:23 -03:00
parent f077fdd580
commit d5aef78f06
6 changed files with 48 additions and 46 deletions

View File

@@ -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,