Skip to content

provide a way to prepare any kind of image to be drawn #75750

@nt4f04uNd

Description

@nt4f04uNd

currently image, even if it's drawn from byte data, will have a quite noticable time to be processed before
i propose that there were a way to prepare any kind of image (memory, asset, network, file, or from ImageProvider) to be drawn

reproducible sample https://github.com/nt4f04unds-archive/issues/tree/flutter_75750

use case

there might be cases when someone would like to do such thing

as possible example (i know it's weird way to handle things as it's not effective, but still) - we call takePicture() in camera plugin and we don't want a black frame to appear whilst the image is processing after Image.memory is constructed, instead we would like to somehow prepare the image to be painted and only then show it

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: imagesLoading, displaying, rendering imagesc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions