-
Notifications
You must be signed in to change notification settings - Fork 152
feat: Flutter SDK update for version 21.1.0 #296
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
c551421
a7fa706
710dda7
2f803e7
7e4ef45
c7e8c97
03ddb36
11ef9a8
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,16 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
| import 'package:appwrite/enums.dart' as enums; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| Key result = await account.createKey( | ||
| name: '<NAME>', | ||
| scopes: [enums.Scopes.account], | ||
| expire: '', // 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. Empty string for optional Passing 🤖 Prompt for AI Agents |
||
| ); | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| PaymentMethod result = await account.createPaymentMethod(); | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| await account.deleteKey( | ||
| keyId: '<KEY_ID>', | ||
| ); | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| await account.deletePaymentMethod( | ||
| paymentMethodId: '<PAYMENT_METHOD_ID>', | ||
| ); | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| Key result = await account.getKey( | ||
| keyId: '<KEY_ID>', | ||
| ); | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ```dart | ||
| import 'package:appwrite/appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| Account account = Account(client); | ||
|
|
||
| PaymentMethod result = await account.getPaymentMethod( | ||
| paymentMethodId: '<PAYMENT_METHOD_ID>', | ||
| ); | ||
| ``` |
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.
Changelog entry wording on Line 6 is slightly misleading.
"Fix
Rolesenum removed" reads as if the removal itself is a bug fix, but removing an enum and changing the parameter type toList<String>is a breaking change. Consider rewording to clarify intent, e.g.:Suggested wording
📝 Committable suggestion
🤖 Prompt for AI Agents