Added support for a themeMode property to the MaterialApp to control how the light or dark theme is selected.