fluttercandies / flutter_image_editor

Flutter plugin, support android/ios.Support crop, flip, rotate, color martix, mix image, add text. merge multi images.
Apache License 2.0
419 stars 129 forks source link

Temp File Path is wrong #12

Closed MoshDev closed 4 years ago

MoshDev commented 4 years ago
 static Future<String> _createTmpFilePath() async {
    final cacheDir = await NativeChannel.getCachePath();
    final name = DateTime.now().millisecondsSinceEpoch;
    return "$cacheDir/$name";
  }

"$cacheDir/$name" = "Directory: '/data/user/0/com.sample.debug/cache'1577749314116"

your NativeChannel.getCachePath(); returns Directory instance not a String

solution return "${cacheDir.path}/$name";