According to the director's commentary on the DVD, Earl was going to be a gym teacher and part-time cop. His profession was changed to a full-time cop only, but they kept the gym teacher's short shorts on him.
When Flint is explaining how the machine can turn water into any kind of food, Sam asks if Jell-O is possible. Flint says yes, and then asks if she likes peanut butter. Sam says she is extremely allergic to peanuts, which prompts Flint to say, "Oh yeah, me too!" In real life, Bill Hader is highly allergic to peanuts.
The island on which the town of Swallow Falls (later Chewandswallow) is located corresponds to the real-life geographic location of Bermuda. This is implied at the beginning when the island is said to be under the first "A" in Atlantic, as Bermuda is the only island in the West Atlantic north of the tropics. It is later confirmed on a weather map towards the climax of the movie, when the weather storm is clearly seen to originate several hundred miles of the coast of the Carolinas.
The directors originally wanted to get Electric Light Orchestra's title song from Xanadu (1980) to play under the end credits, but they couldn't find out who owned the rights. Miranda Cosgrove's "Raining Sunshine" was used instead.
This was the first Columbia Pictures/Sony Pictures Animation film to have an altered logo sequence. When the Columbia Pictures logo appears, a banana hits the Torch Lady and knocks her out of the image. During the Sony Pictures Animation logo sequence, dark clouds uncover the end of the logo.
In the Mt Rushmore scene, a "pie gag" occurs; in which pies are seen hitting the faces of the presidents sculpted into the mountain. The first three pies hit Washington, Jefferson, and Roosevelt directly in the face; as is typical of a pie gag. The fourth pie however, hits Lincoln in the back of the head, with the pie filling blowing over the top of his head and oozing from his eyes and nose. This is a reference to the assassination of President Lincoln.
When Flint is in his lab "visualizing" with the 3-D holographic images, he's wearing glasses with red and blue lenses. The glasses are a nod to the original 3-D movies from the 1950s to the late 1990s which required glasses with red and blue lenses in order to make the 3-D effect. Nowadays, movies such as Cloudy with a Chance of Meatballs (2009) use a different form of 3-D technology that uses "polarized" rather than colored lenses.
In the scene where Flint tests the Food Replicator and the power goes out, the musical score stops. However, the tune Flint is humming as he leaves the lab to fix the circuit breaker is the melody of the musical score.
When the screen cuts away to the Cities Weather Forecast, several cities listed have anomalous weather readings. Some have extremely cold weather with a rain cloud next to them (if it were that cold, any precipitation would be snow), and some have mild temperatures with snowflakes next to them.
The trivia item below may give away important plot points.
As Flint is flying in his 'Flying Car 2,' giant gummy bears attack the vehicle and begin tampering with the wings. This is a reference to Star Wars: Revenge of the Sith (2005) when buzz droids do the same to Obi-Wan and Anakin's ships.