When I look at the map of lands taken from Germany has ww1 the Danzig corridor stands out to me as insanely short sighted. I assume the area on the other side of the corridor, Konigsberg was largely German and thus the area of the corridor was as well. Is this the case? Was there a similar flight of Germans out of that area (and from the taken German lands more generally) as the flight following ww2?
the area on the other side of the corridor, Konigsberg was largely German
Depends on your definition of 'German'. The vast majority of the inhabitants of Eastern Prussia was both Slavic (speaking Masurian, a dialect of Polish) and very anti-Polish-state. Many Masurians were loyal to the East Prussia rather than Poland which last claimed the region in 1657.
The Pomorze region was similarly divided, with the majority of inhabitants being ethnic Kashubians. The pro-polish groups were the strongest in the "corridor" region, which was indeed largely slavic.
Was there a similar flight of Germans out of that area (and from the taken German lands more generally) as the flight following ww2?
There was no flight after WWII, the Germans were humanely resettled. There was also no flight after WWI - indeed, it was the alleged treatment of German minority that Germans used to justify their war crimes.