ajustes de layout
This commit is contained in:
@@ -9,6 +9,10 @@ class ButtonCustom extends StatelessWidget{
|
||||
final Color colorBorder;
|
||||
final widthCustom;
|
||||
final double height;
|
||||
double borderRadiustopRight;
|
||||
double borderRadiusbottomLeft;
|
||||
double borderRadiustopLeft;
|
||||
double borderRadiusbottomRight;
|
||||
|
||||
ButtonCustom({
|
||||
required this.onPressed,
|
||||
@@ -18,7 +22,11 @@ ButtonCustom({
|
||||
required this.colorText,
|
||||
required this.colorBorder,
|
||||
this.widthCustom = 1.0,
|
||||
this.height = 42.0,
|
||||
this.height = 42.5,
|
||||
this.borderRadiustopRight = 5.0,
|
||||
this.borderRadiusbottomLeft = 5.0,
|
||||
this.borderRadiustopLeft = 5.0,
|
||||
this.borderRadiusbottomRight = 5.0,
|
||||
});
|
||||
@override
|
||||
Widget build (BuildContext context) {
|
||||
@@ -29,6 +37,14 @@ ButtonCustom({
|
||||
primary: colorButton,
|
||||
minimumSize: Size(width*widthCustom! , height),
|
||||
side: BorderSide(width: 2,color : colorBorder,),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.only(
|
||||
topRight: Radius.circular(borderRadiustopRight),
|
||||
bottomLeft: Radius.circular(borderRadiusbottomLeft),
|
||||
topLeft: Radius.circular(borderRadiustopLeft),
|
||||
bottomRight: Radius.circular(borderRadiusbottomRight)
|
||||
),
|
||||
),
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(text,
|
||||
|
||||
Reference in New Issue
Block a user