-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)customer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 1.17Found to occur in 1.17Found to occur in 1.17found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onperf: memoryPerformance issues related to memoryPerformance issues related to memoryr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Details
Image.asset use from 100 to 240 Mb for One image:
Image.asset(
'assets/icon_app/meows_splash.png',
fit: BoxFit.cover,
width: width,
height: width,
)Image for test
I tested on ios physical device with Profile mode.
Run flutter app without Image.asset:

Run with Image on 1.21.0-2.0.pre94:

I found workaround - use cacheWidth
Image.asset(
'assets/icon_app/meows_splash.png',
fit: BoxFit.cover,
width: width,
height: width,
cacheWidth: width ~/ 1,
cacheHeight: width ~/ 1,
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)customer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/found in release: 1.17Found to occur in 1.17Found to occur in 1.17found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onperf: memoryPerformance issues related to memoryPerformance issues related to memoryr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version

