File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -279,13 +279,13 @@ class Style {
279
279
}
280
280
281
281
static Map <String , Style > fromThemeData (ThemeData theme) => {
282
- 'h1' : Style .fromTextStyle (theme.textTheme.headline1 ! ),
283
- 'h2' : Style .fromTextStyle (theme.textTheme.headline2 ! ),
284
- 'h3' : Style .fromTextStyle (theme.textTheme.headline3 ! ),
285
- 'h4' : Style .fromTextStyle (theme.textTheme.headline4 ! ),
286
- 'h5' : Style .fromTextStyle (theme.textTheme.headline5 ! ),
287
- 'h6' : Style .fromTextStyle (theme.textTheme.headline6 ! ),
288
- 'body' : Style .fromTextStyle (theme.textTheme.bodyText2 ! ),
282
+ 'h1' : Style .fromTextStyle (theme.textTheme.displayLarge ! ),
283
+ 'h2' : Style .fromTextStyle (theme.textTheme.displayMedium ! ),
284
+ 'h3' : Style .fromTextStyle (theme.textTheme.displaySmall ! ),
285
+ 'h4' : Style .fromTextStyle (theme.textTheme.headlineMedium ! ),
286
+ 'h5' : Style .fromTextStyle (theme.textTheme.headlineSmall ! ),
287
+ 'h6' : Style .fromTextStyle (theme.textTheme.titleLarge ! ),
288
+ 'body' : Style .fromTextStyle (theme.textTheme.bodyMedium ! ),
289
289
};
290
290
291
291
static Map <String , Style > fromCss (
You can’t perform that action at this time.
0 commit comments