error: The argument type 'Future<void>' can't be assigned to the parameter type 'void Function()'. (argument_type_not_assignable at [beer_pool] lib\app\ui\android\forget_password_page\widgets\submit_button_recover_password.dart:13) code example
Example: The argument type 'Future' can't be assigned to the parameter type 'void Function()'
REPLACE THIS:
onPressed: Navigator.push(...)
WITH THIS:
onPressed: () => Navigator.push(...)