Skip to content

Commit 42e0bcb

Browse files
feat(stac): Rename StacRequest to StacNetworkRequest (#309)
The changes in this commit rename the `StacRequest` class to `StacNetworkRequest` to better reflect its purpose of making network requests. This change is made across the example code in the `stac` package, the `README.md` file, and the documentation on the website. closes #307
1 parent af8c64e commit 42e0bcb

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

packages/stac/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class MyApp extends StatelessWidget {
387387
primarySwatch: Colors.blue,
388388
),
389389
home: Stac.fromNetwork(
390-
StacRequest(
390+
StacNetworkRequest(
391391
url: _url,
392392
method: Method.get,
393393
),

packages/stac/example/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class MyApp extends StatelessWidget {
288288
primarySwatch: Colors.blue,
289289
),
290290
home: Stac.fromNetwork(
291-
StacRequest(
291+
StacNetworkRequest(
292292
url: _url,
293293
method: Method.get,
294294
),
@@ -312,4 +312,3 @@ Check out the [Stac Gallery](https://github.com/StacDev/stac/tree/main/examples/
312312

313313

314314
[form_screen]: https://github.com/StacDev/stac/blob/main/assets/form_screen_image.png
315-

website/docs/intro.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class MyApp extends StatelessWidget {
440440
primarySwatch: Colors.blue,
441441
),
442442
home: Stac.fromNetwork(
443-
StacRequest(
443+
StacNetworkRequest(
444444
url: _url,
445445
method: Method.get,
446446
),
@@ -455,5 +455,3 @@ That's it with just few lines of code your SDUI app is up and running.
455455
<img src="/img/form_screen_image.png" alt="Form screen example"/>
456456

457457
For more detailed examples and advanced usage, refer to the [Stac Gallery App](https://github.com/StacDev/stac/tree/dev/examples/stac_gallery).
458-
459-

0 commit comments

Comments
 (0)