The flag of Texas is also called the "Lone Star Flag" — and therefore Texas is often nicknamed as "The Lone Star State".
It was introduced to the Congress of the Republic of Texas on December 28, 1838 by Senator William H. Wharton, and was adopted as the national flag on January 25, 1839.
It became the state flag on December 29, 1845 when Texas became the 28th state of the Union.
The colors of the Texas flag are symbolic: blue for loyalty, white for purity, and red for bravery. The lone star is stated to "stand for Texan unity as one for God, State, and Country". It was a solidarity symbol used during the war for independence from Mexico and is still seen today as a symbol of Texas' independent spirit.
Source: Wikipedia