Revert "nav bar font styles are special, do not inherit (#12578)" (#12661)

This reverts commit 964a138d80.

It may (or may not) have caused a performance regression. Hard to say.
This commit is contained in:
Ian Hickson
2017-10-23 11:05:12 -07:00
committed by GitHub
parent 1fce14a31c
commit 662b668485

View File

@@ -330,19 +330,19 @@ class _CupertinoPersistentNavigationBar extends StatelessWidget implements Prefe
color: actionsForegroundColor,
);
final Widget styledLeading = leading == null ? null : new DefaultTextStyle(
final Widget styledLeading = leading == null ? null : DefaultTextStyle.merge(
style: actionsStyle,
child: leading,
);
final Widget styledTrailing = trailing == null ? null : new DefaultTextStyle(
final Widget styledTrailing = trailing == null ? null : DefaultTextStyle.merge(
style: actionsStyle,
child: trailing,
);
// Let the middle be black rather than `actionsForegroundColor` in case
// it's a plain text title.
final Widget styledMiddle = middle == null ? null : new DefaultTextStyle(
final Widget styledMiddle = middle == null ? null : DefaultTextStyle.merge(
style: actionsStyle.copyWith(
fontWeight: FontWeight.w600,
letterSpacing: -0.72,