Heat a dutch oven or large soup pot over medium-high heat.
Add in the butter and let melt.
Next, add onion and cook in butter until softened.
Then, add in the garlic for the last minute of cooking the onions.
Sprinkle the flour over the onions and garlic and stir, cooking for a minute or two.
Stir in heavy cream/milk and vegetable stock, making sure to incorporate the flour well so there are no clumps.
Add in potatoes and corn and let simmer for 20 minutes or until potatoes are cooked through.
Season with salt and pepper.
At this point the chowder is usually too thin for us, so we thicken it with a slurry of cornstarch and water. You can decide how thick you want it and do that too or not.
Once you get the chowder to the thickness you like, serve it up and enjoy your warm bowl!