defaultActions method
Implementation
List<Widget> defaultActions(Color primaryColor) => <Widget>[
if (widget.onCancelled != null)
AButton(
color: Colors.transparent,
textColor: primaryColor,
elevation: 0,
text: "CANCELAR",
onPressed: widget.onCancelled!,
),
if (!widget.showAllForm) ...<Widget>[
if (widget.backButton && page > 0)
AButton(
color: Colors.transparent,
elevation: 0,
borderColor: primaryColor,
textColor: primaryColor,
text: "Voltar",
onPressed: onBack,
),
],
if (widget.showAllForm || isLastPage)
saveAction()
else if (!widget.showAllForm && !isLastPage)
nextAction(),
];