error: The argument type 'Future' can't be assigned to the parameter type 'void Function()'
Replace
onPressed: Navigator.push(...)
with
onPressed: () => Navigator.push(...)
Replace
onPressed: Navigator.push(...)
with
onPressed: () => Navigator.push(...)