TextTheme
Customizes Text styles.
Material 3 design defines 5 groups of text styles with 3 sizes in each group: "Display", "Headline", "Title", "Label" and "Body" which are used across Flet controls.
Properties
body_large- Largest of the body styles.body_medium- Middle size of the body styles.body_small- Smallest of the body styles.display_large- Largest of the display styles.display_medium- Middle size of the display styles.display_small- Smallest of the display styles.headline_large- Largest of the headline styles.headline_medium- Middle size of the headline styles.headline_small- Smallest of the headline styles.label_large- Largest of the label styles.label_medium- Middle size of the label styles.label_small- Smallest of the label styles.title_large- Largest of the title styles.title_medium- Middle size of the title styles.title_small- Smallest of the title styles.
Properties
body_largeclass-attributeinstance-attribute
body_large: TextStyle | None = NoneLargest of the body styles. Body styles are used for longer passages of text.
body_mediumclass-attributeinstance-attribute
body_medium: TextStyle | None = NoneMiddle size of the body styles. Body styles are used for longer passages of text. The default text style for Material.
body_smallclass-attributeinstance-attribute
body_small: TextStyle | None = NoneSmallest of the body styles.
display_largeclass-attributeinstance-attribute
display_large: TextStyle | None = NoneLargest of the display styles. As the largest text on the screen, display styles are reserved for short, important text or numerals. They work best on large screens.
display_mediumclass-attributeinstance-attribute
display_medium: TextStyle | None = NoneMiddle size of the display styles.
display_smallclass-attributeinstance-attribute
display_small: TextStyle | None = NoneSmallest of the display styles.
headline_largeclass-attributeinstance-attribute
headline_large: TextStyle | None = NoneLargest of the headline styles. Headline styles are smaller than display styles. They're best-suited for short, high-emphasis text on smaller screens.