We made this dish with white sweet corn, but yellow or bicolor corn would be delicious as well.
Stir together flour, sugar, salt, ginger, and white pepper in a small bowl.
Melt butter in a large saucepan over medium heat; add onion, and cook, stirring occasionally, until tender, 4 to 5 minutes (do not brown). Add corn; cook, stirring, until just tender, about 2 minutes. Sprinkle with flour mixture, tossing to coat; cook 1 minute. Add cream; cook, stirring, until corn is tender and mixture is thickened, about 3 minutes.