From 1b819a047b2b78938942c6fa93151f02b28e5145 Mon Sep 17 00:00:00 2001 From: fzyzcjy <117010016@link.cuhk.edu.cn> Date: Fri, 19 Feb 2021 00:46:03 +0800 Subject: [PATCH] Correct the unit of file size from "kb" (maybe "kilo bits") to "KB" (#76033) --- packages/flutter/lib/src/painting/decoration_image.dart | 2 +- packages/flutter/test/painting/paint_image_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 0086a6d982..64e21e654d 100644 --- a/packages/flutter/lib/src/painting/decoration_image.dart +++ b/packages/flutter/lib/src/painting/decoration_image.dart @@ -502,7 +502,7 @@ void paintImage({ exception: 'Image $debugImageLabel has a display size of ' '$outputWidth×$outputHeight but a decode size of ' '${image.width}×${image.height}, which uses an additional ' - '${overheadInKilobytes}kb.\n\n' + '${overheadInKilobytes}KB.\n\n' 'Consider resizing the asset ahead of time, supplying a cacheWidth ' 'parameter of $outputWidth, a cacheHeight parameter of ' '$outputHeight, or using a ResizeImage.', diff --git a/packages/flutter/test/painting/paint_image_test.dart b/packages/flutter/test/painting/paint_image_test.dart index 1e1ccef26c..bb114149c0 100644 --- a/packages/flutter/test/painting/paint_image_test.dart +++ b/packages/flutter/test/painting/paint_image_test.dart @@ -101,7 +101,7 @@ void main() { expect( messages.single, - 'Image TestImage has a display size of 200×100 but a decode size of 300×300, which uses an additional 364kb.\n\n' + 'Image TestImage has a display size of 200×100 but a decode size of 300×300, which uses an additional 364KB.\n\n' 'Consider resizing the asset ahead of time, supplying a cacheWidth parameter of 200, a cacheHeight parameter of 100, or using a ResizeImage.', );