Rename DefaultTextStyle.inherit to merge (#5974)

For consistency with IconTheme and TextStyle.merge.

Fixes #4652
This commit is contained in:
Adam Barth
2016-09-20 18:49:46 -07:00
committed by GitHub
parent bfced97d08
commit 42dee0be27
2 changed files with 3 additions and 3 deletions

View File

@@ -316,7 +316,7 @@ class CardCollectionState extends State<CardCollection> {
}
)
)
: new DefaultTextStyle.inherit(
: new DefaultTextStyle.merge(
context: context,
style: cardLabelStyle.copyWith(
fontSize: _varyFontSizes ? 5.0 + index : null

View File

@@ -12,7 +12,7 @@ import 'media_query.dart';
class DefaultTextStyle extends InheritedWidget {
/// Creates a default text style for the given subtree.
///
/// Consider using [DefaultTextStyle.inherit] to inherit styling information
/// Consider using [DefaultTextStyle.merge] to inherit styling information
/// from a the current default text style for a given [BuildContext].
DefaultTextStyle({
Key key,
@@ -43,7 +43,7 @@ class DefaultTextStyle extends InheritedWidget {
/// for the given [BuildContext] and, if non-null, the given [textAlign]
/// replaces the [textAlign] from the default text style for the given
/// [BuildContext].
factory DefaultTextStyle.inherit({
factory DefaultTextStyle.merge({
Key key,
@required BuildContext context,
TextStyle style,