Skip to content

Commit 4cf3543

Browse files
committed
Update README
1 parent a19e68b commit 4cf3543

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ To make API calls we need to use the `JsonServiceClient`, installed by adding th
2929

3030
```yaml
3131
dependencies:
32-
servicestack: "^1.0.0"
32+
servicestack: "^1.0.2"
3333
```
3434
35-
Saving `pubspec.yaml` in VS Code with the [Dart Code Extension](https://dartcode.org) automatically calls `flutter packages get` to add any new dependencies to your project.
35+
Saving `pubspec.yaml` in VS Code with the [Dart Code Extension](https://dartcode.org) automatically calls `pub get` or `flutter packages get` (in Flutter projects) to add any new dependencies to your project.
3636

3737
We now have everything we need to be able to make typed API requests to any of [TechStacks APIs](https://www.techstacks.io/metadata) with a shared `JsonServiceClient` instance populated with the base URL of the remote endpoint, e.g:
3838

3939
```dart
40-
import 'package:servicestack/servicestack.dart';
40+
import 'package:servicestack/client.dart';
4141
4242
import 'techstacks.dtos.dart';
4343
@@ -206,12 +206,12 @@ Which updates all Dart references in the current directory, including any custom
206206
Updated: test.dtos.dart
207207
Updated: techstacks.dtos.dart
208208

209-
This gives us everything we need to call Web Services in our Flutter App, by importing `package:servicestack/servicestack.dart` containing `JsonServiceClient` as well as any generated DTOs.
209+
This gives us everything we need to call Web Services in our Flutter App, by importing `package:servicestack/client.dart` containing `JsonServiceClient` as well as any generated DTOs.
210210

211211
Then create new `JsonServiceClient` instances initialized with the `BaseUrl` for each of the remote endpoints we want to call:
212212

213213
```dart
214-
import 'package:servicestack/servicestack.dart';
214+
import 'package:servicestack/client.dart';
215215
216216
import 'test.dtos.dart';
217217
import 'techstacks.dtos.dart';
@@ -495,7 +495,7 @@ BaseUrl: https://www.techstacks.io
495495
//AddDescriptionAsComments: True
496496
//IncludeTypes:
497497
//ExcludeTypes:
498-
//DefaultImports: package:servicestack/servicestack.dart
498+
//DefaultImports: package:servicestack/client.dart
499499
*/
500500
```
501501

0 commit comments

Comments
 (0)