The Indian National Flag was designed by Pingali Venkayya, a freedom fighter, agriculturist and educationist from present-day Andhra Pradesh. He presented his design to Mahatma Gandhi around 1921, and after several rounds of modification over the following years, an adapted version of his design, with the addition of the Ashoka Chakra in place of the spinning wheel, was adopted as the official flag of independent India on 22 July 1947.
Mahatma Gandhi is incorrect because, while he guided the early discussions on what the flag should represent and met Venkayya to review the design, he was not the person who drew it up. Jawaharlal Nehru moved the resolution in the Constituent Assembly that formally adopted the flag, but he too was not its designer. Rabindra Nath Tagore is unrelated to the flag's design; he is known for literary and artistic contributions such as writing the national anthem, not for creating the flag.