jsonplaceholder_offline 1.0.3 jsonplaceholder_offline: ^1.0.3 copied to clipboard
A simple JsonPlaceholder offline package that allows you to get data for your flutter project on the go without relying on the network
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add jsonplaceholder_offline
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
jsonplaceholder_offline: ^1.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:jsonplaceholder_offline/jsonplaceholder_offline.dart';