Commit ceef460a authored by Scott Hyndman's avatar Scott Hyndman Committed by Flutter GitHub Bot

Correct name in DecorationImage error string (#47260)

parent 9884f998
...@@ -222,7 +222,7 @@ class DecorationImagePainter { ...@@ -222,7 +222,7 @@ class DecorationImagePainter {
// when the image is ready. // when the image is ready.
if (configuration.textDirection == null) { if (configuration.textDirection == null) {
throw FlutterError.fromParts(<DiagnosticsNode>[ throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary('ImageDecoration.matchTextDirection can only be used when a TextDirection is available.'), ErrorSummary('DecorationImage.matchTextDirection can only be used when a TextDirection is available.'),
ErrorDescription( ErrorDescription(
'When DecorationImagePainter.paint() was called, there was no text direction provided ' 'When DecorationImagePainter.paint() was called, there was no text direction provided '
'in the ImageConfiguration object to match.' 'in the ImageConfiguration object to match.'
......
...@@ -257,7 +257,7 @@ void main() { ...@@ -257,7 +257,7 @@ void main() {
expect(error.diagnostics[3], isInstanceOf<DiagnosticsProperty<ImageConfiguration>>()); expect(error.diagnostics[3], isInstanceOf<DiagnosticsProperty<ImageConfiguration>>());
expect(error.toStringDeep(), expect(error.toStringDeep(),
'FlutterError\n' 'FlutterError\n'
' ImageDecoration.matchTextDirection can only be used when a\n' ' DecorationImage.matchTextDirection can only be used when a\n'
' TextDirection is available.\n' ' TextDirection is available.\n'
' When DecorationImagePainter.paint() was called, there was no text\n' ' When DecorationImagePainter.paint() was called, there was no text\n'
' direction provided in the ImageConfiguration object to match.\n' ' direction provided in the ImageConfiguration object to match.\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment