Skip to content

Documentation are not correct #337

@rahmanprofile

Description

@rahmanprofile

Version

latest

Platforms

Android

Device Model

all

flutter info

Future<File> testCompressAndGetFile(File file, String targetPath) async {
    var result = await FlutterImageCompress.compressAndGetFile(
        file.absolute.path, targetPath,
        quality: 88,
        rotate: 180,
      );

    print(file.lengthSync());
    print(result.lengthSync());

    return result;
  }

How to reproduce?

You've wrote here this "compressAndGetFile()" return XFIle and u have mention "File"..
Future testCompressAndGetFile(File file, String targetPath) async {
var result = await FlutterImageCompress.compressAndGetFile(
file.absolute.path, targetPath,
quality: 88,
rotate: 180,
);

print(file.lengthSync());
print(result.lengthSync());

return result;

}

Logs

Example code (optional)

Contact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions