From ceef460a64749a667b3607f0c1ad98ca5238a3e8 Mon Sep 17 00:00:00 2001 From: Scott Hyndman Date: Wed, 18 Dec 2019 00:23:02 -0800 Subject: [PATCH] Correct name in DecorationImage error string (#47260) --- packages/flutter/lib/src/painting/decoration_image.dart | 2 +- packages/flutter/test/painting/decoration_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/painting/decoration_image.dart b/packages/flutter/lib/src/painting/decoration_image.dart index fff0f06223..69b3597163 100644 --- a/packages/flutter/lib/src/painting/decoration_image.dart +++ b/packages/flutter/lib/src/painting/decoration_image.dart @@ -222,7 +222,7 @@ class DecorationImagePainter { // when the image is ready. if (configuration.textDirection == null) { throw FlutterError.fromParts([ - 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( 'When DecorationImagePainter.paint() was called, there was no text direction provided ' 'in the ImageConfiguration object to match.' diff --git a/packages/flutter/test/painting/decoration_test.dart b/packages/flutter/test/painting/decoration_test.dart index e0ce23e90c..b869fee1c7 100644 --- a/packages/flutter/test/painting/decoration_test.dart +++ b/packages/flutter/test/painting/decoration_test.dart @@ -257,7 +257,7 @@ void main() { expect(error.diagnostics[3], isInstanceOf>()); expect(error.toStringDeep(), 'FlutterError\n' - ' ImageDecoration.matchTextDirection can only be used when a\n' + ' DecorationImage.matchTextDirection can only be used when a\n' ' TextDirection is available.\n' ' When DecorationImagePainter.paint() was called, there was no text\n' ' direction provided in the ImageConfiguration object to match.\n'