Style Your App with Themes
With the release of Flutter 1.17, the TextTheme API has been updated to match the current Material design spec. This is a non-breaking change but you'll receive a warning in your editor when you use the headline text style because this is an old naming convention. Click here to learn more.
Learn how to use themes to style your apps and switch styling based on whether the underlying OS is set to dark mode.