Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aafeda5

Browse files
Update README.md
1 parent f8970f4 commit aafeda5

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

‎README.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
# jsonloader
22

3-
JSON Loader Package
3+
JSON Loader Package to read JSON from asset.
4+
5+
## Features
6+
7+
* Load and read JSON from assets.
48

59
## Getting Started
610

7-
This project is a starting point for a Dart
8-
[package](https://flutter.dev/developing-packages/),
9-
a library module containing code that can be shared easily across
10-
multiple Flutter or Dart projects.
11+
In the `pubspec.yaml` of your flutter project, add the following dependency:
12+
13+
```yaml
14+
dependencies:
15+
...
16+
jsonloader: "^1.0.0"
17+
```
18+
19+
In your library add the following import:
20+
21+
```dart
22+
import 'package:jsonloader/jsonloader.dart';
23+
```
24+
25+
## Super Simple To Use
26+
```dart
27+
import 'package:jsonloader/jsonloader.dart';
1128
12-
For help getting started with Flutter, view our
13-
[online documentation](https://flutter.dev/docs), which offers tutorials,
14-
samples, guidance on mobile development, and a full API reference.
29+
void main() async {
30+
var jsonString = await JSONLoader().getJsonAsString('assets/login_response.json');
31+
print('jsonString: $jsonString');
32+
}
33+
```

‎pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: jsonloader
2-
description: JSON Loader Package for read JSON from asset
2+
description: JSON Loader Package to read JSON from asset
33
version: 1.0.0
44
author: Yudi Setiawan <kolonel.yudisetiawan@gmail.com>
55
homepage: https://github.com/CoderJava/flutter-jsonloader

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /