diff --git a/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md b/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..83da4ddc07 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/create-o-auth2session.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.createOAuth2Session( + provider: 'bitbucket', + success: 'https://example.com', + failure: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-recovery.md b/app/sdks/flutter-dart/docs/examples/account/create-recovery.md new file mode 100644 index 0000000000..f381743e10 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/create-recovery.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.createRecovery( + email: 'email@example.com', + url: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-session.md b/app/sdks/flutter-dart/docs/examples/account/create-session.md new file mode 100644 index 0000000000..65584ae62a --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/create-session.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.createSession( + email: 'email@example.com', + password: 'password', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create-verification.md b/app/sdks/flutter-dart/docs/examples/account/create-verification.md new file mode 100644 index 0000000000..735c53f4dd --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/create-verification.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.createVerification( + url: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/create.md b/app/sdks/flutter-dart/docs/examples/account/create.md new file mode 100644 index 0000000000..596c8e8fcf --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/create.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.create( + email: 'email@example.com', + password: 'password', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete-session.md b/app/sdks/flutter-dart/docs/examples/account/delete-session.md new file mode 100644 index 0000000000..a1c4fe58c0 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/delete-session.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.deleteSession( + sessionId: '[SESSION_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md b/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md new file mode 100644 index 0000000000..e0e0f9d6ea --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/delete-sessions.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.deleteSessions(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/delete.md b/app/sdks/flutter-dart/docs/examples/account/delete.md new file mode 100644 index 0000000000..6566687b96 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/delete.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.delete(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-logs.md b/app/sdks/flutter-dart/docs/examples/account/get-logs.md new file mode 100644 index 0000000000..00d0d95eee --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/get-logs.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.getLogs(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-prefs.md b/app/sdks/flutter-dart/docs/examples/account/get-prefs.md new file mode 100644 index 0000000000..ac9af996e8 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/get-prefs.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.getPrefs(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get-sessions.md b/app/sdks/flutter-dart/docs/examples/account/get-sessions.md new file mode 100644 index 0000000000..136b349bbc --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/get-sessions.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.getSessions(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/get.md b/app/sdks/flutter-dart/docs/examples/account/get.md new file mode 100644 index 0000000000..7a3fab6ae3 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/get.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.get(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-email.md b/app/sdks/flutter-dart/docs/examples/account/update-email.md new file mode 100644 index 0000000000..0e3783719b --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-email.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updateEmail( + email: 'email@example.com', + password: 'password', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-name.md b/app/sdks/flutter-dart/docs/examples/account/update-name.md new file mode 100644 index 0000000000..f36e747d80 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-name.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updateName( + name: '[NAME]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-password.md b/app/sdks/flutter-dart/docs/examples/account/update-password.md new file mode 100644 index 0000000000..dbc873634f --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-password.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updatePassword( + password: 'password', + oldPassword: 'password', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-prefs.md b/app/sdks/flutter-dart/docs/examples/account/update-prefs.md new file mode 100644 index 0000000000..6a687b63f4 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-prefs.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updatePrefs( + prefs: {}, +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-recovery.md b/app/sdks/flutter-dart/docs/examples/account/update-recovery.md new file mode 100644 index 0000000000..d1e420e549 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-recovery.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updateRecovery( + userId: '[USER_ID]', + secret: '[SECRET]', + passwordA: 'password', + passwordB: 'password', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/account/update-verification.md b/app/sdks/flutter-dart/docs/examples/account/update-verification.md new file mode 100644 index 0000000000..7b080556b2 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/account/update-verification.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Account account = Account(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = account.updateVerification( + userId: '[USER_ID]', + secret: '[SECRET]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md b/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md new file mode 100644 index 0000000000..4e057dd753 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-browser.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getBrowser( + code: 'aa', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md b/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..caa57c877b --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-credit-card.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getCreditCard( + code: 'amex', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md b/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..488bf3b351 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-favicon.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getFavicon( + url: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md b/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md new file mode 100644 index 0000000000..f401bae569 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-flag.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getFlag( + code: 'af', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-image.md b/app/sdks/flutter-dart/docs/examples/avatars/get-image.md new file mode 100644 index 0000000000..d9bee4b20f --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-image.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getImage( + url: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md b/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..9be7533e0b --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/avatars/get-q-r.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Avatars avatars = Avatars(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = avatars.getQR( + text: '[TEXT]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/create-document.md b/app/sdks/flutter-dart/docs/examples/database/create-document.md new file mode 100644 index 0000000000..9eea7b677c --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/database/create-document.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Database database = Database(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = database.createDocument( + collectionId: '[COLLECTION_ID]', + data: {}, + read: [], + write: [], +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/delete-document.md b/app/sdks/flutter-dart/docs/examples/database/delete-document.md new file mode 100644 index 0000000000..5e41ff0a41 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/database/delete-document.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Database database = Database(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = database.deleteDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/get-document.md b/app/sdks/flutter-dart/docs/examples/database/get-document.md new file mode 100644 index 0000000000..e410508fb1 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/database/get-document.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Database database = Database(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = database.getDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/list-documents.md b/app/sdks/flutter-dart/docs/examples/database/list-documents.md new file mode 100644 index 0000000000..b4270d909b --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/database/list-documents.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Database database = Database(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = database.listDocuments( + collectionId: '[COLLECTION_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/database/update-document.md b/app/sdks/flutter-dart/docs/examples/database/update-document.md new file mode 100644 index 0000000000..e9c584e066 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/database/update-document.md @@ -0,0 +1,24 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Database database = Database(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = database.updateDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + data: {}, + read: [], + write: [], +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-continents.md b/app/sdks/flutter-dart/docs/examples/locale/get-continents.md new file mode 100644 index 0000000000..743635f053 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get-continents.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.getContinents(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..c46b95ec07 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get-countries-e-u.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.getCountriesEU(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..a406f184f9 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get-countries-phones.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.getCountriesPhones(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-countries.md b/app/sdks/flutter-dart/docs/examples/locale/get-countries.md new file mode 100644 index 0000000000..c83c02b60c --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get-countries.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.getCountries(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md b/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md new file mode 100644 index 0000000000..b34f4c7162 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get-currencies.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.getCurrencies(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/locale/get.md b/app/sdks/flutter-dart/docs/examples/locale/get.md new file mode 100644 index 0000000000..fed81b836e --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/locale/get.md @@ -0,0 +1,18 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Locale locale = Locale(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = locale.get(); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/create-file.md b/app/sdks/flutter-dart/docs/examples/storage/create-file.md new file mode 100644 index 0000000000..5fbdff2387 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/create-file.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; +//const fs = require('fs'); + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.createFile( + file: null, + read: [], + write: [], +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/delete-file.md b/app/sdks/flutter-dart/docs/examples/storage/delete-file.md new file mode 100644 index 0000000000..9a2ed98b96 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/delete-file.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.deleteFile( + fileId: '[FILE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md new file mode 100644 index 0000000000..77b78a757b --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/get-file-download.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.getFileDownload( + fileId: '[FILE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..85e24d7d9a --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/get-file-preview.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.getFilePreview( + fileId: '[FILE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md b/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md new file mode 100644 index 0000000000..985b73839d --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/get-file-view.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.getFileView( + fileId: '[FILE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/get-file.md b/app/sdks/flutter-dart/docs/examples/storage/get-file.md new file mode 100644 index 0000000000..bdeaf55130 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/get-file.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.getFile( + fileId: '[FILE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/list-files.md b/app/sdks/flutter-dart/docs/examples/storage/list-files.md new file mode 100644 index 0000000000..9ef25d8a01 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/list-files.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.listFiles( +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/storage/update-file.md b/app/sdks/flutter-dart/docs/examples/storage/update-file.md new file mode 100644 index 0000000000..44955c224f --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/storage/update-file.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Storage storage = Storage(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = storage.updateFile( + fileId: '[FILE_ID]', + read: [], + write: [], +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/create-membership.md b/app/sdks/flutter-dart/docs/examples/teams/create-membership.md new file mode 100644 index 0000000000..b06200f66d --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/create-membership.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.createMembership( + teamId: '[TEAM_ID]', + email: 'email@example.com', + roles: [], + url: 'https://example.com', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/create.md b/app/sdks/flutter-dart/docs/examples/teams/create.md new file mode 100644 index 0000000000..71bb6219a2 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/create.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.create( + name: '[NAME]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md b/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md new file mode 100644 index 0000000000..4baddf5f9d --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/delete-membership.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.deleteMembership( + teamId: '[TEAM_ID]', + inviteId: '[INVITE_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/delete.md b/app/sdks/flutter-dart/docs/examples/teams/delete.md new file mode 100644 index 0000000000..c88521f2a2 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/delete.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.delete( + teamId: '[TEAM_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md b/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md new file mode 100644 index 0000000000..27e0971de7 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/get-memberships.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.getMemberships( + teamId: '[TEAM_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/get.md b/app/sdks/flutter-dart/docs/examples/teams/get.md new file mode 100644 index 0000000000..ef9c01002c --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/get.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.get( + teamId: '[TEAM_ID]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/list.md b/app/sdks/flutter-dart/docs/examples/teams/list.md new file mode 100644 index 0000000000..a9e4313b83 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/list.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.list( +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md b/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..a33ecd4c18 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/update-membership-status.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.updateMembershipStatus( + teamId: '[TEAM_ID]', + inviteId: '[INVITE_ID]', + userId: '[USER_ID]', + secret: '[SECRET]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/docs/examples/teams/update.md b/app/sdks/flutter-dart/docs/examples/teams/update.md new file mode 100644 index 0000000000..b1cc7e2391 --- /dev/null +++ b/app/sdks/flutter-dart/docs/examples/teams/update.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +// Init SDK +Client client = Client(); +Teams teams = Teams(client); + +client + .setProject('5df5acd0d48c2') // Your project ID +; + +Future result = teams.update( + teamId: '[TEAM_ID]', + name: '[NAME]', +); + +result + .then((response) { + print(response); + }).catchError((error) { + print(error); + }); \ No newline at end of file diff --git a/app/sdks/flutter-dart/lib/client.dart b/app/sdks/flutter-dart/lib/client.dart index e58d9edab8..511194caae 100644 --- a/app/sdks/flutter-dart/lib/client.dart +++ b/app/sdks/flutter-dart/lib/client.dart @@ -1,48 +1,77 @@ import 'dart:io'; -import 'package:cookie_jar/cookie_jar.dart'; -import 'package:dio/adapter.dart'; import 'package:dio/dio.dart'; +import 'package:dio/adapter.dart'; import 'package:dio_cookie_manager/dio_cookie_manager.dart'; +import 'package:cookie_jar/cookie_jar.dart'; +import 'package:path_provider/path_provider.dart'; +import 'package:package_info/package_info.dart'; import 'enums.dart'; class Client { String endPoint; + String type = 'unknown'; Map headers; + Map config; bool selfSigned; - final Dio http; + bool init = false; + Dio http; + PersistCookieJar cookieJar; Client({this.endPoint = 'https://appwrite.io/v1', this.selfSigned = false, Dio http}) : this.http = http ?? Dio() { + + type = (Platform.isIOS) ? 'ios' : type; + type = (Platform.isMacOS) ? 'macos' : type; + type = (Platform.isAndroid) ? 'android' : type; + type = (Platform.isLinux) ? 'linux' : type; + type = (Platform.isWindows) ? 'windows' : type; + type = (Platform.isFuchsia) ? 'fuchsia' : type; + this.headers = { 'content-type': 'application/json', 'x-sdk-version': 'appwrite:dart:0.0.10', }; + this.config = {}; + assert(endPoint.startsWith(RegExp("http://|https://")), "endPoint $endPoint must start with 'http'"); - this.http.options.baseUrl = this.endPoint; - this.http.options.validateStatus = (status) => status != 404; - this.http.interceptors.add(CookieManager(CookieJar())); + } + + Future _getCookiePath() async { + final directory = await getApplicationDocumentsDirectory(); + final path = directory.path; + final Directory dir = new Directory('$path/cookies'); + await dir.create(); + return dir; } /// Your project ID Client setProject(value) { + config['project'] = value; addHeader('X-Appwrite-Project', value); return this; } + /// Your secret API key Client setKey(value) { + config['key'] = value; addHeader('X-Appwrite-Key', value); return this; } + Client setLocale(value) { + config['locale'] = value; addHeader('X-Appwrite-Locale', value); return this; } + Client setMode(value) { + config['mode'] = value; addHeader('X-Appwrite-Mode', value); return this; } + Client setSelfSigned({bool status = true}) { selfSigned = status; return this; @@ -60,7 +89,7 @@ class Client { return this; } - Future call(HttpMethod method, {String path = '', Map headers = const {}, Map params = const {}}) { + Future call(HttpMethod method, {String path = '', Map headers = const {}, Map params = const {}}) async { if(selfSigned) { // Allow self signed requests (http.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (HttpClient client) { @@ -69,9 +98,25 @@ class Client { }; } + if(!init) { + final Directory cookieDir = await _getCookiePath(); + + cookieJar = new PersistCookieJar(dir:cookieDir.path); + + this.http.options.baseUrl = this.endPoint; + this.http.options.validateStatus = (status) => status < 400; + this.http.interceptors.add(CookieManager(cookieJar)); + + PackageInfo packageInfo = await PackageInfo.fromPlatform(); + + addHeader('Origin', 'appwrite-' + type + '://' + packageInfo.packageName); + + init = true; + } + // Origin is hardcoded for testing Options options = Options( - headers: {...this.headers, ...headers, "Origin": "http://localhost"}, + headers: {...this.headers, ...headers}, method: method.name(), ); diff --git a/app/sdks/flutter-dart/lib/services/account.dart b/app/sdks/flutter-dart/lib/services/account.dart index 5b8a8bcba7..68d0229e64 100644 --- a/app/sdks/flutter-dart/lib/services/account.dart +++ b/app/sdks/flutter-dart/lib/services/account.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; @@ -187,15 +190,32 @@ class Account extends Service { /// choice. Each OAuth2 provider should be enabled from the Appwrite console /// first. Use the success and failure arguments to provide a redirect URL's /// back to your app when login is completed. - Future createOAuth2Session({@required String provider, @required String success, @required String failure}) { + Future createOAuth2Session({@required String provider, @required String success, @required String failure}) { final String path = '/account/sessions/oauth2/{provider}'.replaceAll(RegExp('{provider}'), provider); final Map params = { 'success': success, 'failure': failure, + 'project': client.config['project'], }; - return client.call(HttpMethod.get, path: path, params: params); + Uri endpoint = Uri.parse(client.endPoint); + Uri url = new Uri(scheme: endpoint.scheme, + host: endpoint.host, + port: endpoint.port, + path: endpoint.path + path, + queryParameters:params, + ); + + return FlutterWebAuth.authenticate( + url: url.toString(), + callbackUrlScheme: "appwrite-callback" + ).then((value) { + Uri url = Uri.parse(value); + List cookies = [new Cookie(url.queryParameters['key'], url.queryParameters['secret'])]; + client.cookieJar.saveFromResponse(Uri.parse(client.endPoint), cookies); + }).catchError((error) { + }); } /// Use this endpoint to log out the currently logged in user from all his /// account sessions across all his different devices. When using the option id diff --git a/app/sdks/flutter-dart/lib/services/avatars.dart b/app/sdks/flutter-dart/lib/services/avatars.dart index d7e7143e1a..70b2b959bb 100644 --- a/app/sdks/flutter-dart/lib/services/avatars.dart +++ b/app/sdks/flutter-dart/lib/services/avatars.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; diff --git a/app/sdks/flutter-dart/lib/services/database.dart b/app/sdks/flutter-dart/lib/services/database.dart index 3e3648af2a..1e72c19c25 100644 --- a/app/sdks/flutter-dart/lib/services/database.dart +++ b/app/sdks/flutter-dart/lib/services/database.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; diff --git a/app/sdks/flutter-dart/lib/services/locale.dart b/app/sdks/flutter-dart/lib/services/locale.dart index 83c1276222..e8b7b51116 100644 --- a/app/sdks/flutter-dart/lib/services/locale.dart +++ b/app/sdks/flutter-dart/lib/services/locale.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; diff --git a/app/sdks/flutter-dart/lib/services/storage.dart b/app/sdks/flutter-dart/lib/services/storage.dart index 4a46941ac3..dc02fccb3d 100644 --- a/app/sdks/flutter-dart/lib/services/storage.dart +++ b/app/sdks/flutter-dart/lib/services/storage.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; @@ -73,19 +76,36 @@ class Storage extends Service { /// Get file content by its unique ID. The endpoint response return with a /// 'Content-Disposition: attachment' header that tells the browser to start /// downloading the file to user downloads directory. - Future getFileDownload({@required String fileId}) { + Future getFileDownload({@required String fileId}) { final String path = '/storage/files/{fileId}/download'.replaceAll(RegExp('{fileId}'), fileId); final Map params = { + 'project': client.config['project'], }; - return client.call(HttpMethod.get, path: path, params: params); + Uri endpoint = Uri.parse(client.endPoint); + Uri url = new Uri(scheme: endpoint.scheme, + host: endpoint.host, + port: endpoint.port, + path: endpoint.path + path, + queryParameters:params, + ); + + return FlutterWebAuth.authenticate( + url: url.toString(), + callbackUrlScheme: "appwrite-callback" + ).then((value) { + Uri url = Uri.parse(value); + List cookies = [new Cookie(url.queryParameters['key'], url.queryParameters['secret'])]; + client.cookieJar.saveFromResponse(Uri.parse(client.endPoint), cookies); + }).catchError((error) { + }); } /// Get a file preview image. Currently, this method supports preview for image /// files (jpg, png, and gif), other supported formats, like pdf, docs, slides, /// and spreadsheets, will return the file icon image. You can also pass query /// string arguments for cutting and resizing your preview image. - Future getFilePreview({@required String fileId, int width = 0, int height = 0, int quality = 100, String background = '', String output = ''}) { + Future getFilePreview({@required String fileId, int width = 0, int height = 0, int quality = 100, String background = '', String output = ''}) { final String path = '/storage/files/{fileId}/preview'.replaceAll(RegExp('{fileId}'), fileId); final Map params = { @@ -94,19 +114,53 @@ class Storage extends Service { 'quality': quality, 'background': background, 'output': output, + 'project': client.config['project'], }; - return client.call(HttpMethod.get, path: path, params: params); + Uri endpoint = Uri.parse(client.endPoint); + Uri url = new Uri(scheme: endpoint.scheme, + host: endpoint.host, + port: endpoint.port, + path: endpoint.path + path, + queryParameters:params, + ); + + return FlutterWebAuth.authenticate( + url: url.toString(), + callbackUrlScheme: "appwrite-callback" + ).then((value) { + Uri url = Uri.parse(value); + List cookies = [new Cookie(url.queryParameters['key'], url.queryParameters['secret'])]; + client.cookieJar.saveFromResponse(Uri.parse(client.endPoint), cookies); + }).catchError((error) { + }); } /// Get file content by its unique ID. This endpoint is similar to the download /// method but returns with no 'Content-Disposition: attachment' header. - Future getFileView({@required String fileId, String as = ''}) { + Future getFileView({@required String fileId, String as = ''}) { final String path = '/storage/files/{fileId}/view'.replaceAll(RegExp('{fileId}'), fileId); final Map params = { 'as': as, + 'project': client.config['project'], }; - return client.call(HttpMethod.get, path: path, params: params); + Uri endpoint = Uri.parse(client.endPoint); + Uri url = new Uri(scheme: endpoint.scheme, + host: endpoint.host, + port: endpoint.port, + path: endpoint.path + path, + queryParameters:params, + ); + + return FlutterWebAuth.authenticate( + url: url.toString(), + callbackUrlScheme: "appwrite-callback" + ).then((value) { + Uri url = Uri.parse(value); + List cookies = [new Cookie(url.queryParameters['key'], url.queryParameters['secret'])]; + client.cookieJar.saveFromResponse(Uri.parse(client.endPoint), cookies); + }).catchError((error) { + }); } } \ No newline at end of file diff --git a/app/sdks/flutter-dart/lib/services/teams.dart b/app/sdks/flutter-dart/lib/services/teams.dart index 2539823df0..5a93a85c0e 100644 --- a/app/sdks/flutter-dart/lib/services/teams.dart +++ b/app/sdks/flutter-dart/lib/services/teams.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:dio/dio.dart'; import 'package:meta/meta.dart'; +import 'package:flutter_web_auth/flutter_web_auth.dart'; import "../client.dart"; import '../enums.dart'; diff --git a/app/sdks/flutter-dart/pubspec.yaml b/app/sdks/flutter-dart/pubspec.yaml index 97ef09bf4b..808c30e9a2 100644 --- a/app/sdks/flutter-dart/pubspec.yaml +++ b/app/sdks/flutter-dart/pubspec.yaml @@ -9,6 +9,29 @@ environment: sdk: '>=2.6.0 <3.0.0' dependencies: meta: ^1.1.8 + path_provider: ^1.6.5 dio: ^3.0.0 cookie_jar: ^1.0.0 dio_cookie_manager: ^1.0.0 + flutter_web_auth: ^0.1.3 + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^0.1.2 + +dev_dependencies: + flutter_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true \ No newline at end of file diff --git a/composer.lock b/composer.lock index 322f9ff361..9d281a163a 100644 --- a/composer.lock +++ b/composer.lock @@ -239,12 +239,12 @@ "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "47fe531de31fca4a1b997f87308e7d7804348f7e" + "reference": "95c63ab2117a72f48f5a55da9740a3273d45b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/47fe531de31fca4a1b997f87308e7d7804348f7e", - "reference": "47fe531de31fca4a1b997f87308e7d7804348f7e", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/95c63ab2117a72f48f5a55da9740a3273d45b7fd", + "reference": "95c63ab2117a72f48f5a55da9740a3273d45b7fd", "shasum": "" }, "require": { @@ -287,7 +287,7 @@ "ssl", "tls" ], - "time": "2020-01-13T10:02:55+00:00" + "time": "2020-04-08T08:27:21+00:00" }, { "name": "dasprid/enum", @@ -1622,7 +1622,7 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "f8e7c334e672468ca9d2e616e10f2379ea890ae7" + "reference": "31b451aee0a68f7247d206e949eed9a6f9e3bd72" }, "require": { "ext-curl": "*", @@ -1652,7 +1652,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2020-04-06T04:46:23+00:00" + "time": "2020-04-08T17:00:31+00:00" }, { "name": "doctrine/instantiator",