Fabric, rip stop nylon. Use polyester machine embroidery thread. Choose a design that is not very dense as the nylon sort of perforates. I would use a washaway stabilizer. If the flag will be viewed from both sides, you will need to use matching bobbin thread.