Skip to content

The app freezes on web, when printing a MemoryImage #1886

@DavidOrakpo

Description

@DavidOrakpo

Describe the bug

We're converting a widget into an image of type Uint8List. Passing this image into the MemoryImage constructor, then adding this to the Image widget.

Doing this causes the whole UI to instantly freeze for more than 10 seconds while processing takes place

To Reproduce
Code snippet to reproduce the behavior:

// your code

Expected behavior

Screenshots

Flutter Doctor

Desktop (please complete the following information):

  • iOS
  • Android
  • [x ] Browser
  • Windows
  • Linux

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions