Migrate TextTheme to 2018 APIs (#48547)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
77fb0c1ade
commit
bc5c46438a
@@ -363,7 +363,7 @@ class UserHeader extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: <Widget>[
|
||||
RichText(text: TextSpan(
|
||||
style: Theme.of(context).textTheme.body1,
|
||||
style: Theme.of(context).textTheme.bodyText2,
|
||||
children: <TextSpan>[
|
||||
TextSpan(text: userName, style: const TextStyle(fontWeight: FontWeight.bold)),
|
||||
const TextSpan(text: ' shared a new '),
|
||||
@@ -462,8 +462,8 @@ class ItemImageBox extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: <Widget>[
|
||||
Text('Artisans of Southern India', style: Theme.of(context).textTheme.body2),
|
||||
Text('Silk Spinners', style: Theme.of(context).textTheme.body1),
|
||||
Text('Artisans of Southern India', style: Theme.of(context).textTheme.bodyText1),
|
||||
Text('Silk Spinners', style: Theme.of(context).textTheme.bodyText2),
|
||||
Text('Sivaganga, Tamil Nadu', style: Theme.of(context).textTheme.caption),
|
||||
],
|
||||
),
|
||||
@@ -506,7 +506,7 @@ class ItemGalleryBox extends StatelessWidget {
|
||||
child: Container(
|
||||
color: Theme.of(context).primaryColor,
|
||||
child: Center(
|
||||
child: Text(tabName, style: Theme.of(context).textTheme.headline.copyWith(color: Colors.white)),
|
||||
child: Text(tabName, style: Theme.of(context).textTheme.headline5.copyWith(color: Colors.white)),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user