flutter / dart error: The argument type 'Future' can't be assigned to the parameter type 'File'

前端 未结 4 1697
时光说笑
时光说笑 2021-02-14 06:12

I\'m trying to build my first mobile application with flutter and firebase. When I try to display and store a photo I have the following issue :

error: T

4条回答
  •  广开言路
    2021-02-14 07:11

    to convert Future to File, add await in front of the function to make its argument a Future type!

    File file2 = await fixExifRotation(imageFile.path);
    

提交回复
热议问题