ajustes de layout

This commit is contained in:
Reginaldo
2023-08-11 17:12:50 -03:00
parent 1ffaa70fed
commit 4500ee04aa
9 changed files with 197 additions and 125 deletions

View File

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