Skip to content

Commit e1032c4

Browse files
authored
Merge pull request #319 from appwrite/dev
feat: Flutter SDK update for version 25.1.0
2 parents b041e93 + dce521a commit e1032c4

110 files changed

Lines changed: 2965 additions & 2197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Change Log
22

3+
## 25.1.0
4+
5+
* Added: Email metadata fields to `User` (`emailCanonical`, `emailIsFree`, `emailIsDisposable`, `emailIsCorporate`, `emailIsCanonical`).
6+
* Added: `Membership.userAccessedAt` field.
7+
* Updated: Requests now send an explicit `accept` header matching each endpoint's response type.
8+
39
## 25.0.0
410

511
* Breaking: `avatars.getScreenshot` `theme` parameter now uses the `BrowserTheme` enum
612
* Breaking: Removed generic type parameters from `presences` service methods
7-
* Added: `BrowserTheme` enum
13+
* Replaced: `BrowserTheme` enum
814
* Updated: `Presence` model is now concrete and adds a `metadata` field
915

1016
## 24.1.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add this to your package's `pubspec.yaml` file:
1919

2020
```yml
2121
dependencies:
22-
appwrite: ^25.0.0
22+
appwrite: ^25.1.0
2323
```
2424
2525
You can install packages from the command line:

docs/examples/account/update-password.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Account account = Account(client);
99
1010
User result = await account.updatePassword(
1111
password: '',
12-
oldPassword: 'password', // optional
12+
oldPassword: '<OLD_PASSWORD>', // optional
1313
);
1414
```

lib/query.dart

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,34 +222,46 @@ class Query {
222222

223223
/// Filter resources where [attribute] is at a specific distance from the given coordinates.
224224
static String distanceEqual(
225-
String attribute, List<dynamic> values, num distance,
226-
[bool meters = true]) =>
225+
String attribute,
226+
List<dynamic> values,
227+
num distance, [
228+
bool meters = true,
229+
]) =>
227230
Query._('distanceEqual', attribute, [
228-
[values, distance, meters]
231+
[values, distance, meters],
229232
]).toString();
230233

231234
/// Filter resources where [attribute] is not at a specific distance from the given coordinates.
232235
static String distanceNotEqual(
233-
String attribute, List<dynamic> values, num distance,
234-
[bool meters = true]) =>
236+
String attribute,
237+
List<dynamic> values,
238+
num distance, [
239+
bool meters = true,
240+
]) =>
235241
Query._('distanceNotEqual', attribute, [
236-
[values, distance, meters]
242+
[values, distance, meters],
237243
]).toString();
238244

239245
/// Filter resources where [attribute] is at a distance greater than the specified value from the given coordinates.
240246
static String distanceGreaterThan(
241-
String attribute, List<dynamic> values, num distance,
242-
[bool meters = true]) =>
247+
String attribute,
248+
List<dynamic> values,
249+
num distance, [
250+
bool meters = true,
251+
]) =>
243252
Query._('distanceGreaterThan', attribute, [
244-
[values, distance, meters]
253+
[values, distance, meters],
245254
]).toString();
246255

247256
/// Filter resources where [attribute] is at a distance less than the specified value from the given coordinates.
248257
static String distanceLessThan(
249-
String attribute, List<dynamic> values, num distance,
250-
[bool meters = true]) =>
258+
String attribute,
259+
List<dynamic> values,
260+
num distance, [
261+
bool meters = true,
262+
]) =>
251263
Query._('distanceLessThan', attribute, [
252-
[values, distance, meters]
264+
[values, distance, meters],
253265
]).toString();
254266

255267
/// Filter resources where [attribute] intersects with the given geometry.

0 commit comments

Comments
 (0)