-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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,
)PlugFox, mit-73, Zazo032, AlexanderTopchiy, shprotru and 39 moreKnoerleMandsrenesanse, shprotru and ainulbedjoTom3652 and inc16sec
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

