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,
|
||||
|
||||
Reference in New Issue
Block a user