Images rendered by directly calling these two functions
Legacy code that invokes these functions directly might
find their images upside down and colored incorrectly.

Migration guide

If the app uses the latest version of Flutter and experiences this situation,
the most direct solution is to manually flip the image, and use the alternate
pixel format. However, this is unlikely the most optimized solution,
since such pixel data are usually constructed from other sources,
allowing flipping during the construction process.

Code before migration:

import

'dart:typed_data'

import

'dart:ui'

as

ui

// Parse `image` as a displayable image.

//

// Each byte in `image` is a pixel channel, in the order of blue, green, red,

// and alpha, starting from the bottom left corner and going row first.

Future