class VecRaisedButton extends RaisedButton {
VecRaisedButton({
text,
elevation,
onPressed,
colorButton = CorPrimaria,
colorFont,
splashColor: CorBranca
}) :
super(
child:VecText(text: text, textAlign: TextAlign.center, color: colorFont),
shape:RoundedRectangleBorder( borderRadius: BordaArredondadaApenas4(10, 10, 10, 10)),
splashColor:splashColor,
elevation:elevation,
onPressed: () => onPressed,
color:colorButton,
);
}
child: VecRaisedButton(
text: "Enviar",
colorFont: CorBranca,
onPressed: Navigator.push(context, MaterialPageRoute(builder: (context) => Layout_Menu())),
)
Кто-нибудь может мне помочь?