Hundreds of people gathered for the funeral of a seven-year-old boy killed in a suspected hit-and-run.