-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Dart SDK update for version 19.4.0 #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8c4c16f
4526b59
6663a3c
762e116
cbacd95
fdf0f04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||||||
|
|
||||||
| Client client = Client() | ||||||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||||||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||||||
| .setSession(''); // The user session to authenticate with | ||||||
|
|
||||||
| Avatars avatars = Avatars(client); | ||||||
|
|
||||||
| UInt8List result = await avatars.getScreenshot( | ||||||
| url: 'https://example.com', | ||||||
| headers: {}, // (optional) | ||||||
| viewportWidth: 1, // (optional) | ||||||
| viewportHeight: 1, // (optional) | ||||||
| scale: 0.1, // (optional) | ||||||
| theme: .light, // (optional) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the enum qualifier. The Apply this diff: - theme: .light, // (optional)
+ theme: Theme.light, // (optional)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| userAgent: '<USER_AGENT>', // (optional) | ||||||
| fullpage: false, // (optional) | ||||||
| locale: '<LOCALE>', // (optional) | ||||||
| timezone: .africaAbidjan, // (optional) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the enum qualifier. The Apply this diff: - timezone: .africaAbidjan, // (optional)
+ timezone: Timezone.africaAbidjan, // (optional)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| latitude: -90, // (optional) | ||||||
| longitude: -180, // (optional) | ||||||
| accuracy: 0, // (optional) | ||||||
| touch: false, // (optional) | ||||||
| permissions: [], // (optional) | ||||||
| sleep: 0, // (optional) | ||||||
| width: 0, // (optional) | ||||||
| height: 0, // (optional) | ||||||
| quality: -1, // (optional) | ||||||
| output: .jpg, // (optional) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the enum qualifier. The Apply this diff: - output: .jpg, // (optional)
+ output: Output.jpg, // (optional)🤖 Prompt for AI Agents |
||||||
| ); | ||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the type name.
The return type should be
Uint8List(lowercase 'i'), notUInt8List.Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appwrite/sdk-generator#1253
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 133
@ChiragAgg5k, perfect! I can see you've already created PR #1253 to fix the typo at the generator level. This is exactly the right approach—fixing it at the source ensures all generated SDKs will have the correct
Uint8Listspelling going forward.Once that PR is merged and you regenerate this SDK, the typo will be automatically corrected. Thanks for addressing this! 🎯