The argument type 'Future<List<LocationModel>>' can't be assigned to the parameter type 'Future<List<LocationModel>> Function(int)'. 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(...)