criada a tela responsible_register_screen.dart, o model responsavel_model.dart e feitos outros ajustes
This commit is contained in:
@@ -9,11 +9,8 @@ class ButtonCustom extends StatelessWidget{
|
||||
final Color colorBorder;
|
||||
final widthCustom;
|
||||
final heightCustom;
|
||||
final font;
|
||||
|
||||
const ButtonCustom(
|
||||
{Key? key,
|
||||
required this.font,
|
||||
ButtonCustom({
|
||||
required this.onPressed,
|
||||
required this.text,
|
||||
required this.size,
|
||||
@@ -22,7 +19,7 @@ class ButtonCustom extends StatelessWidget{
|
||||
required this.colorBorder,
|
||||
this.widthCustom = 1.0,
|
||||
this.heightCustom = 1.0
|
||||
}) : super(key: key);
|
||||
});
|
||||
@override
|
||||
Widget build (BuildContext context) {
|
||||
double width =MediaQuery.of(context).size.width;
|
||||
@@ -33,16 +30,14 @@ class ButtonCustom extends StatelessWidget{
|
||||
primary: colorButton,
|
||||
minimumSize: Size(width*widthCustom! , height*heightCustom!),
|
||||
side: BorderSide(width: 2,color : colorBorder,),
|
||||
|
||||
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(text,
|
||||
style: TextStyle(fontFamily: font, color: colorText,
|
||||
fontSize: size,fontWeight: FontWeight.bold
|
||||
style: TextStyle(
|
||||
color: colorText,
|
||||
fontSize: size,
|
||||
fontWeight: FontWeight.bold
|
||||
),
|
||||
|
||||
|
||||
) ,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user