@@ -1097,7 +1097,7 @@ abstract class State<T extends StatefulWidget> with Diagnosticable {
10971097 ErrorHint (
10981098 'Instead of performing asynchronous work inside a call to setState(), first '
10991099 'execute the work (without updating the widget state), and then synchronously '
1100- 'update the state inside a call to setState().' ,
1100+ 'update the state inside a call to setState().' ,
11011101 ),
11021102 ]);
11031103 }
@@ -1781,8 +1781,8 @@ abstract class MultiChildRenderObjectWidget extends RenderObjectWidget {
17811781 // TODO(a14n): remove this check to have a lot more const widget
17821782 if (children[index] == null ) {
17831783 throw FlutterError (
1784- "$runtimeType 's children must not contain any null values, "
1785- 'but a null value was found at index $index ' ,
1784+ "$runtimeType 's children must not contain any null values, "
1785+ 'but a null value was found at index $index ' ,
17861786 );
17871787 }
17881788 }
@@ -2738,20 +2738,20 @@ class BuildOwner {
27382738 error = FlutterError .fromParts (< DiagnosticsNode > [
27392739 ErrorSummary ('Multiple widgets used the same GlobalKey.' ),
27402740 ErrorDescription (
2741- 'The key $key was used by multiple widgets. The parents of those widgets were:\n '
2742- '- ${older .toString ()}\n '
2743- '- ${newer .toString ()}\n '
2744- 'A GlobalKey can only be specified on one widget at a time in the widget tree.' ,
2741+ 'The key $key was used by multiple widgets. The parents of those widgets were:\n '
2742+ '- ${older .toString ()}\n '
2743+ '- ${newer .toString ()}\n '
2744+ 'A GlobalKey can only be specified on one widget at a time in the widget tree.' ,
27452745 ),
27462746 ]);
27472747 } else {
27482748 error = FlutterError .fromParts (< DiagnosticsNode > [
27492749 ErrorSummary ('Multiple widgets used the same GlobalKey.' ),
27502750 ErrorDescription (
2751- 'The key $key was used by multiple widgets. The parents of those widgets were '
2752- 'different widgets that both had the following description:\n '
2753- ' ${parent .toString ()}\n '
2754- 'A GlobalKey can only be specified on one widget at a time in the widget tree.' ,
2751+ 'The key $key was used by multiple widgets. The parents of those widgets were '
2752+ 'different widgets that both had the following description:\n '
2753+ ' ${parent .toString ()}\n '
2754+ 'A GlobalKey can only be specified on one widget at a time in the widget tree.' ,
27552755 ),
27562756 ]);
27572757 }
@@ -3949,7 +3949,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
39493949 'this render object has not yet been through layout, which typically '
39503950 'means that the size getter was called too early in the pipeline '
39513951 '(e.g., during the build phase) before the framework has determined '
3952- 'the size and position of the render objects during layout.' ,
3952+ 'the size and position of the render objects during layout.' ,
39533953 ),
39543954 describeElement ('The size getter was called for the following element' ),
39553955 box.describeForError ('The render object from which the size was to be obtained was' ),
@@ -4247,16 +4247,14 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
42474247 ErrorSummary ('setState() or markNeedsBuild() called during build.' ),
42484248 ErrorDescription (
42494249 'This ${widget .runtimeType } widget cannot be marked as needing to build because the framework '
4250- 'is already in the process of building widgets. A widget can be marked as '
4250+ 'is already in the process of building widgets. A widget can be marked as '
42514251 'needing to be built during the build phase only if one of its ancestors '
42524252 'is currently building. This exception is allowed because the framework '
42534253 'builds parent widgets before children, which means a dirty descendant '
42544254 'will always be built. Otherwise, the framework might not visit this '
42554255 'widget during this build phase.' ,
42564256 ),
4257- describeElement (
4258- 'The widget on which setState() or markNeedsBuild() was called was' ,
4259- ),
4257+ describeElement ('The widget on which setState() or markNeedsBuild() was called was' ),
42604258 ];
42614259 if (owner! ._debugCurrentBuildTarget != null )
42624260 information.add (owner! ._debugCurrentBuildTarget! .describeWidget ('The widget which was currently being built when the offending call was made was' ));
@@ -4830,7 +4828,7 @@ class StatefulElement extends ComponentElement {
48304828 ErrorSummary ('${state .runtimeType }.dispose failed to call super.dispose.' ),
48314829 ErrorDescription (
48324830 'dispose() implementations must always call their superclass dispose() method, to ensure '
4833- 'that all the resources used by the widget are fully released.' ,
4831+ 'that all the resources used by the widget are fully released.' ,
48344832 ),
48354833 ]);
48364834 }());
0 commit comments