Skip to content

Conversation

@ChiragAgg5k
Copy link
Member

@ChiragAgg5k ChiragAgg5k commented Nov 28, 2025

This PR contains updates to the Flutter SDK for version 20.3.2.

Summary by CodeRabbit

  • New Features
    • Avatars now support screenshot capture functionality with customizable options for theme, timezone, and output format.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Nov 28, 2025

Walkthrough

This pull request introduces extensions to the Avatars service by adding a new getScreenshot() method alongside three new public enums: Theme, Timezone, and Output. The changes represent additive modifications to the service's API surface, expanding its functionality with a screenshot capture capability and providing new configuration options through the introduced enums.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Review the getScreenshot() method implementation for correctness and parameter handling
  • Verify the three enums (Theme, Timezone, Output) have appropriate values and naming conventions
  • Check consistency with existing Avatars service patterns and conventions
  • Ensure proper documentation/comments for new public APIs

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title mentions a Flutter SDK version update (20.3.2), but the actual changes involve adding a new getScreenshot() method to the Avatars service and three new enums (Theme, Timezone, Output). The title is generic and doesn't capture the specific feature additions. Clarify the title to reflect the main changes, such as: 'feat: Add getScreenshot() method and new enums to Avatars service' or provide context on why a version bump is the primary focus.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 948b14b and 9c8b2f7.

📒 Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
🔇 Additional comments (1)
CHANGELOG.md (1)

3-11: Verify semantic versioning aligns with feature scope.

Adding new public methods and enums to the API surface is typically a feature addition, which warrants a minor version bump (20.4.0) rather than a patch release (20.3.2). Patch releases conventionally contain only bug fixes. If these features are intended as part of 20.3.2, confirm this is the maintainers' intentional versioning strategy; otherwise, consider bumping to 20.4.0.

Comment on lines +10 to +11
* Add `getScreenshot` method to `Avatars` service
* Add `Theme`, `Timezone` and `Output` enums
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Read the CHANGELOG.md file to see the exact placement of lines 10-11
cat -n CHANGELOG.md | head -20

Repository: appwrite/sdk-for-flutter

Length of output: 852


The verification confirms the original review comment is accurate. The entries at lines 10-11 are indeed placed under the 20.3.1 section, while the PR title indicates this is a 20.3.2 release. This creates a clear mismatch that needs correction.

Move changelog entries to version 20.3.2 section.

The new feature entries (getScreenshot method and enums) are documented under version 20.3.1, but the PR title indicates this is a version 20.3.2 release. This mismatch creates confusion about which version actually contains these features.

Apply this diff to move the entries to the correct section:

 ## 20.3.2
 
 * Fix OAuth2 browser infinite redirect issue
+* Add `getScreenshot` method to `Avatars` service
+* Add `Theme`, `Timezone` and `Output` enums
 
 ## 20.3.1
 
 * Fix passing of `null` values and stripping only non-nullable optional parameters from the request body
-* Add `getScreenshot` method to `Avatars` service
-* Add `Theme`, `Timezone` and `Output` enums

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In CHANGELOG.md around lines 10 to 11, the two entries ("Add `getScreenshot`
method to `Avatars` service" and "Add `Theme`, `Timezone` and `Output` enums")
are incorrectly placed under the 20.3.1 section while the PR is for 20.3.2; move
those two bullet lines out of the 20.3.1 section and insert them under the
20.3.2 section (create the 20.3.2 header if it does not exist), preserving
bullet formatting and surrounding spacing so the changelog shows the entries
under version 20.3.2.

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.

2 participants