@@ -184,6 +184,8 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
184
184
// The height of the app bar should be all the inner components, plus any margins
185
185
var appBarHeight = profileStuffTop + avatarHeight + metadataHeight + 8 + descriptionHeight;
186
186
187
+ var metadataTextStyle = const TextStyle (fontSize: 12.5 );
188
+
187
189
return Scaffold (
188
190
body: Stack (children: [
189
191
NestedScrollView (
@@ -313,8 +315,8 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
313
315
const SizedBox (width: 4 ),
314
316
Text .rich (TextSpan (
315
317
children: [
316
- TextSpan (text: '${widget .profile .user .friendsCount }' , style: const TextStyle (fontSize : 12 , fontWeight: FontWeight .w500)),
317
- TextSpan (text: ' ${L10n .current .following .toLowerCase ()}' , style: const TextStyle (fontSize : 12 ) )
318
+ TextSpan (text: '${widget .profile .user .friendsCount }' , style: metadataTextStyle. copyWith ( fontWeight: FontWeight .w500)),
319
+ TextSpan (text: ' ${L10n .current .following .toLowerCase ()}' , style: metadataTextStyle )
318
320
]
319
321
)),
320
322
],
@@ -330,8 +332,8 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
330
332
const SizedBox (width: 4 ),
331
333
Text .rich (TextSpan (
332
334
children: [
333
- TextSpan (text: '${widget .profile .user .followersCount }' , style: const TextStyle (fontSize : 12 , fontWeight: FontWeight .w500)),
334
- TextSpan (text: ' ${L10n .current .followers .toLowerCase ()}' , style: const TextStyle (fontSize : 12 ) )
335
+ TextSpan (text: '${widget .profile .user .followersCount }' , style: metadataTextStyle. copyWith ( fontWeight: FontWeight .w500)),
336
+ TextSpan (text: ' ${L10n .current .followers .toLowerCase ()}' , style: metadataTextStyle )
335
337
]
336
338
)),
337
339
],
@@ -345,7 +347,7 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
345
347
children: [
346
348
const Icon (Icons .place, size: 12 , color: Colors .white),
347
349
const SizedBox (width: 4 ),
348
- Text (user.location! , style: const TextStyle (fontSize : 13 ) ),
350
+ Text (user.location! , style: metadataTextStyle ),
349
351
],
350
352
),
351
353
),
@@ -368,7 +370,7 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
368
370
var displayUrl = url.displayUrl ?? url.url;
369
371
var expandedUrl = url.expandedUrl ?? url.url;
370
372
371
- var textStyle = const TextStyle (fontSize : 12.5 ) ;
373
+ var textStyle = metadataTextStyle ;
372
374
if (displayUrl == null || expandedUrl == null ) {
373
375
return Text (L10n .current.unsupported_url, style: textStyle.copyWith (color: theme.hintColor));
374
376
}
@@ -391,7 +393,7 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
391
393
const SizedBox (width: 4 ),
392
394
Text (L10n .of (context)
393
395
.joined (DateFormat ('MMMM yyyy' ).format (user.createdAt! )),
394
- style: const TextStyle (fontSize : 13 )
396
+ style: metadataTextStyle
395
397
),
396
398
],
397
399
),
0 commit comments