Pattern without the edges curling?

Hi, im new to knitting and i want to make a slouchy beane without the folded brim, but i only found patterns where the brim is curling up. I know that happens with the stockinette stitch. Is there a solution to this or do you know a pattern that uses stockinette stitch but doesn’t have the curled edge? Thank you so much for your help 😊