@@ -313,7 +313,10 @@ class _ExampleCard extends StatelessWidget {
313
313
'adipiscing elit, sed do eiusmod tempor.' ,
314
314
style: Theme .of (context)
315
315
.textTheme
316
- .bodyText2
316
+ // TODO(shihaohong): Remove this once Flutter stable adopts the modern
317
+ // Material text style nomenclature.
318
+ // ignore: deprecated_member_use
319
+ .body1
317
320
.copyWith (color: Colors .black54),
318
321
),
319
322
),
@@ -359,7 +362,10 @@ class _SmallerCard extends StatelessWidget {
359
362
children: < Widget > [
360
363
Text (
361
364
'Title' ,
362
- style: Theme .of (context).textTheme.headline6,
365
+ // TODO(shihaohong): Remove this once Flutter stable adopts the modern
366
+ // Material text style nomenclature.
367
+ // ignore: deprecated_member_use
368
+ style: Theme .of (context).textTheme.title,
363
369
),
364
370
const SizedBox (height: 4 ),
365
371
Text (
@@ -409,7 +415,10 @@ class _ExampleSingleTile extends StatelessWidget {
409
415
children: < Widget > [
410
416
Text (
411
417
'Title' ,
412
- style: Theme .of (context).textTheme.subtitle1,
418
+ // TODO(shihaohong): Remove this once Flutter stable adopts the modern
419
+ // Material text style nomenclature.
420
+ // ignore: deprecated_member_use
421
+ style: Theme .of (context).textTheme.subhead,
413
422
),
414
423
const SizedBox (height: 8 ),
415
424
Text (
@@ -476,15 +485,21 @@ class _DetailsPage extends StatelessWidget {
476
485
children: < Widget > [
477
486
Text (
478
487
'Title' ,
479
- style: Theme .of (context).textTheme.headline5.copyWith (
488
+ // TODO(shihaohong): Remove this once Flutter stable adopts the modern
489
+ // Material text style nomenclature.
490
+ // ignore: deprecated_member_use
491
+ style: Theme .of (context).textTheme.headline.copyWith (
480
492
color: Colors .black54,
481
493
fontSize: 30.0 ,
482
494
),
483
495
),
484
496
const SizedBox (height: 10 ),
485
497
Text (
486
498
_loremIpsumParagraph,
487
- style: Theme .of (context).textTheme.bodyText2.copyWith (
499
+ // TODO(shihaohong): Remove this once Flutter stable adopts the modern
500
+ // Material text style nomenclature.
501
+ // ignore: deprecated_member_use
502
+ style: Theme .of (context).textTheme.body1.copyWith (
488
503
color: Colors .black54,
489
504
height: 1.5 ,
490
505
fontSize: 16.0 ,
0 commit comments