Added support for TextAlignment

When the textfields text if centered it looks really odd, so this might help.