From 7c9f95ac0aca4f43efae9b4377137f3f47f2fb06 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Wed, 11 Mar 2020 16:57:06 -0700 Subject: [PATCH] Minor doc changes (#52433) Just some very minor doc changes: an adjustment of my comments in #51495, and a typo fix. --- packages/flutter/lib/src/foundation/diagnostics.dart | 8 ++++++-- packages/flutter/lib/src/widgets/framework.dart | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart index 25f257ad08..989329cb94 100644 --- a/packages/flutter/lib/src/foundation/diagnostics.dart +++ b/packages/flutter/lib/src/foundation/diagnostics.dart @@ -3024,8 +3024,12 @@ class DiagnosticPropertiesBuilder { /// string and [DiagnosticsNode] debug representations describing the properties /// of an object. /// -/// _This mixin is exists only to support plugins that require older Flutter -/// versions: Use the identical mixin [Diagnosticable] instead for most code._ +/// _This mixin exists only to support plugins and packages that require older +/// Flutter versions: Use the identical mixin [Diagnosticable] instead for all +/// new code. If you are authoring code that needs to work on the stable branch +/// as well as master (in a package, for instance), mix this in instead of +/// extending [Diagnosticable]. Once [Diagnosticable] as a mixin reaches the +/// stable channel, this class will be deprecated._ mixin DiagnosticableMixin implements Diagnosticable { @override String toStringShort() => describeIdentity(this); diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 33fd48c4de..69990219a3 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -2054,7 +2054,7 @@ abstract class BuildContext { /// Whether the [widget] is currently updating the widget or render tree. /// - /// For [StatefullWidget]s and [StatelessWidget]s this flag is true while + /// For [StatefulWidget]s and [StatelessWidget]s this flag is true while /// their respective build methods are executing. /// [RenderObjectWidget]s set this to true while creating or configuring their /// associated [RenderObject]s.