Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/all_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ jobs:
- name: 'Flutter Pub Get'
run: melos run get

# Runs on Linux, so this is also what catches paths whose casing only works
# on a case-insensitive filesystem — the analyze and format jobs never touch
# the platform directories or the asset bundle.
build_playground:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: 'stable'
cache: true
- uses: bluefireteam/melos-action@dd3c344d731938d2ab2567a261f54a19a68b5f6a
with:
melos-version: '3.0.1'
- name: 'Build web'
run: flutter build web
working-directory: stac_playground
- name: 'Test'
run: flutter test
working-directory: stac_playground

format:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ tools/stac-vscode/build/
*.vsix
.eslintcache
.vscode-test/
.claude/
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"version": "0.2.0",
"configurations": [
{
"name": "stac_gallery",
"cwd": "examples/stac_gallery",
"name": "stac_playground",
"cwd": "stac_playground",
"request": "launch",
"type": "dart"
},
Expand Down
Binary file modified assets/playground.png
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 docs/actions/multi_action.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ StacMultiAction(
),
behavior: SnackBarBehavior.floating,
),
StacNetworkRequestAction(
StacNetworkRequest(
url: 'https://example.com/api',
method: Method.get,
queryParameters: {'page': 1},
Expand Down
2 changes: 1 addition & 1 deletion docs/actions/set_value.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ StacMultiAction(
{'key': 'isLoading', 'value': true},
],
),
StacNetworkRequestAction(
StacNetworkRequest(
url: 'https://api.example.com/data',
method: Method.get,
results: [
Expand Down
2 changes: 1 addition & 1 deletion docs/widgets/form.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ StacForm(
StacFilledButton(
child: StacText(data: 'Submit'),
onPressed: StacFormValidateAction(
isValid: StacNetworkRequestAction(
isValid: StacNetworkRequest(
url: 'https://dummyjson.com/auth/login',
method: Method.post,
contentType: 'application/json',
Expand Down
12 changes: 6 additions & 6 deletions docs/widgets/refresh_indicator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { PLAYGROUND_BASE_URL } from "/snippets/playground_base.mdx";
export const refreshIndicatorPreviewJson = {
"type": "refreshIndicator",
"onRefresh": {
"actionType": "request",
"url": "https://raw.githubusercontent.com/StacDev/stac/main/examples/stac_gallery/assets/json/list_view_example.json",
"actionType": "networkRequest",
"url": "https://raw.githubusercontent.com/StacDev/stac/main/stac_playground/assets/json/list_view_example.json",
"method": "get",
"contentType": "application/json"
},
Expand Down Expand Up @@ -74,8 +74,8 @@ To know more about the RefreshIndicator widget in Flutter, refer to the [officia

```dart
StacRefreshIndicator(
onRefresh: StacNetworkRequestAction(
url: 'https://raw.githubusercontent.com/StacDev/stac/main/examples/stac_gallery/assets/json/list_view_example.json',
onRefresh: StacNetworkRequest(
url: 'https://raw.githubusercontent.com/StacDev/stac/main/stac_playground/assets/json/list_view_example.json',
method: Method.get,
contentType: 'application/json',
),
Expand All @@ -97,8 +97,8 @@ StacRefreshIndicator(
{
"type": "refreshIndicator",
"onRefresh": {
"actionType": "request",
"url": "https://raw.githubusercontent.com/StacDev/stac/main/examples/stac_gallery/assets/json/list_view_example.json",
"actionType": "networkRequest",
"url": "https://raw.githubusercontent.com/StacDev/stac/main/stac_playground/assets/json/list_view_example.json",
"method": "get",
"contentType": "application/json"
},
Expand Down
25 changes: 0 additions & 25 deletions examples/stac_gallery/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions examples/stac_gallery/analysis_options.yaml

This file was deleted.

Binary file not shown.
Binary file not shown.
19 changes: 0 additions & 19 deletions examples/stac_gallery/assets/images/gallery.svg

This file was deleted.

1 change: 0 additions & 1 deletion examples/stac_gallery/devtools_options.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions examples/stac_gallery/ios/Runner/AppDelegate.swift

This file was deleted.

12 changes: 0 additions & 12 deletions examples/stac_gallery/ios/RunnerTests/RunnerTests.swift

This file was deleted.

17 changes: 0 additions & 17 deletions examples/stac_gallery/lib/app/details/details_screen.dart

This file was deleted.

14 changes: 0 additions & 14 deletions examples/stac_gallery/lib/app/example/example_screen.dart

This file was deleted.

Loading
Loading