Skip to content

Issue with Not Getting Edited Image Back from ProImageEditor #90

Closed Answered by hm21
MarcioPereira155 asked this question in Q&A
Discussion options

You must be logged in to vote

I see that the problem is no longer from the ImageEditor. I think the problem is from the FutureBuilder that it has already finished so when you update the image it is not called again to read it. I recommend using a global variable to make sure it reads the new image as below:

   Uint8List? newImageData;

  // Salva os bytes da imagem editada no dispositivo e retorna o caminho do arquivo
  Future<String?> saveImageToDevice(Uint8List imageBytes) async {
    try {
      newImageData = imageBytes;
      // Obtém o diretório de documentos do aplicativo
      final directory = await getApplicationDocumentsDirectory();
      // Cria um caminho de arquivo único
      String fileName =
          "…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hm21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #22 on June 14, 2024 07:05.