error: The argument type 'Future<dynamic>' can't be assigned to the parameter type 'Widget'. (argument_type_not_assignable at [dracker] lib/notes.dart:49) 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(...)