Skip to content

ResizeImage should make clear in its documentation that the width represents the physical pixels and not the logical pixels #136508

@stephane-archer

Description

@stephane-archer

Is there an existing issue for this?

Use case

ResizeImage should make clear in its documentation that the width represents the physical pixels and not the logical pixels

      return LayoutBuilder(builder: (context, constraints) {
        return Image(
            image: ResizeImage(
          FileImage(File(pathRefImage)),
          width:
              (constraints.maxWidth * MediaQuery.of(context).devicePixelRatio)
                  .toInt(),
        ));

Proposal

ResizeImage should make clear in its documentation that the width represents the physical pixels and not the logical pixels

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/frameworkflutter/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