Correct name in DecorationImage error string (#47260)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
9884f9980f
commit
ceef460a64
@@ -222,7 +222,7 @@ class DecorationImagePainter {
|
||||
// when the image is ready.
|
||||
if (configuration.textDirection == null) {
|
||||
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(
|
||||
'When DecorationImagePainter.paint() was called, there was no text direction provided '
|
||||
'in the ImageConfiguration object to match.'
|
||||
|
||||
@@ -257,7 +257,7 @@ void main() {
|
||||
expect(error.diagnostics[3], isInstanceOf<DiagnosticsProperty<ImageConfiguration>>());
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user