Closed Zeroupper closed 10 months ago
Hello, this is intended behavior. If you need, you can convert ui.Image (not a widget) to material Image (widget):
There were some documentation typos (missing namespace prefix ui.) I have corrected them.
onTap: () async {
final image = await _controller.toImage();
widget.onSave(Image.memory(
Uint8List.view(pngBytes!.buffer)
));
},
Hey,
I am using Flutter version 3.13.5 and have encountered an issue: the Future toImage() function returns an Image from dart:ui, not from package:flutter/material.dart. These two Image types are different, leading to an error when attempting to assign one to the other.
Error: