Galera, segue o código atualizado desse trecho da aula:
controlsBuilder: (BuildContext context, ControlsDetails details) {
return Padding(
padding: const EdgeInsets.only(top: 20),
child: Row(
children: [
ElevatedButton(
onPressed: details.onStepContinue,
child: const Text(
'Salvar',
style: TextStyle(
color: Colors.white,
),
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Colors.green,
),
),
),
const Padding(padding: EdgeInsets.only(right: 20)),
ElevatedButton(
onPressed: details.onStepCancel,
child: const Text(
'Voltar',
style: TextStyle(
color: Colors.white,
),
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Colors.black,
),
),
),
],
),
);
},