My son asked for the same thing...
I took a 2 liter bottle and cut the bill shape he wanted then used my stitches per inch to make it a cover... I worked it from top side over the edge to the bottom side. The sewed it to the brim of the hat.
It turned out really well and he loves it.
hope that helps, and it makes it washable too!