Skip to content

docs: fix incorrect image compression examples in README#351

Open
akhil-ge0rge wants to merge 1 commit intofluttercandies:mainfrom
akhil-ge0rge:readme-update
Open

docs: fix incorrect image compression examples in README#351
akhil-ge0rge wants to merge 1 commit intofluttercandies:mainfrom
akhil-ge0rge:readme-update

Conversation

@akhil-ge0rge
Copy link

Updated the README image compression examples to match the current API signatures and return types.

  • Fixed incorrect return types for compressWithFile and compressAndGetFile
  • Updated file-based examples to handle nullable results correctly
  • Corrected XFile usage where File was previously assumed
  • Ensured examples compile correctly with null safety enabled

No behavior or logic changes were introduced
documentation-only fix.

Closes #337

Updated the README image compression examples to match the current API signatures and return types.

- Fixed incorrect return types for compressWithFile and compressAndGetFile
- Updated file-based examples to handle nullable results correctly
- Corrected XFile usage where File was previously assumed
- Ensured examples compile correctly with null safety enabled

No behavior or logic changes were introduced — documentation-only fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation are not correct

1 participant