Skip to content

fix: flutter svg icon and flutter document and php api path #930

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

Merged
merged 2 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ apis:
osx: https://parseplatform.org/Parse-SDK-iOS-OSX/api/
android: https://parseplatform.org/Parse-SDK-Android/api/
js: https://parseplatform.org/Parse-SDK-JS/api/master/
php: https://parseplatform.org/parse-php-sdk/namespaces/Parse.html
php: https://parseplatform.org/parse-php-sdk/
dotnet: https://parseplatform.org/Parse-SDK-dotNET/api/
flutter: https://parseplatform.org/Parse-SDK-Flutter/api/
flutter: flutter/api/
parse-server: https://parseplatform.org/parse-server/api/

# Build settings
Expand Down
6 changes: 3 additions & 3 deletions _includes/flutter/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ await Parse().initialize(

⚠️ The master key should only be used in safe environments and never on client side. Using this package on a server should be fine.

### Early Web Support
## Early Web Support

Due to Cross-Origin Resource Sharing (CORS) restrictions, web support requires adding `X-Parse-Installation-Id` as an allowed header in the Parse Server configuration:

- When running directly via docker, set the env var `PARSE_SERVER_ALLOW_HEADERS=X-Parse-Installation-Id`.
- When running via express, set the [Parse Server option](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html) `allowHeaders: ['X-Parse-Installation-Id']`.

### Desktop Support (macOS)
## Desktop Support (macOS)

The security entitlements posed by the macOS framework require that your app is granted permission to open outgoing network connections, so that the Parse Flutter SDK can communicate with Parse Server. To grant this permission, add the following code:

Expand All @@ -60,7 +60,7 @@ to the following files:
/macOS/Runner/DebugProfile.entitlements
```

### Network client
## Network client

By default, this SDK uses the `ParseHTTPClient`. Another option is use `ParseDioClient`. This client supports the most features (for example a progress callback at the file upload), but a benchmark has shown that dio is slower than http on web.

Expand Down
2 changes: 1 addition & 1 deletion _includes/flutter/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (dietPlan.success) {
}
```

### Alternative Query Methods
## Alternative Query Methods

The standard query method `query()` returns a `ParseResponse` that contains the result or the error. As an alternative, you can also use `Future<List<T>> find()` for receiving options.
This method returns an `Future` that either resolves in an error (equivalent to the error in the `ParseResponse`) or an `List` containing the queried objects. One difference, you should be aware of, is the fact that `Future<List<T>> find()` will return an empty list instead of the `No results` error you receive in case no object matches your query.
Expand Down
4 changes: 4 additions & 0 deletions assets/symbols.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion flutter-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ layout: redirected
sitemap: false
permalink: /flutter/api/
redirect_to:
- https://pub.dev/documentation/parse_server_sdk/latest/
- https://pub.dev/documentation/parse_server_sdk_flutter/latest/
---
2 changes: 1 addition & 1 deletion php-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ layout: redirected
sitemap: false
permalink: /php/api/
redirect_to:
- https://parse-community.github.io/parse-php-sdk/namespaces/Parse.html
- https://parse-community.github.io/parse-php-sdk/
---
2 changes: 1 addition & 1 deletion php.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ layout: guide
platform: php
language: php
display_platform: PHP
api_reference: https://parse-community.github.io/parse-php-sdk/namespaces/Parse.html
api_reference: https://parse-community.github.io/parse-php-sdk/

sections:
- "php/getting-started.md"
Expand Down