ok_image 0.2.0 ok_image: ^0.2.0 copied to clipboard
Easy to use this library to build a network image widget, you can build different layouts according to the error/load, also set up the image cache delegate.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ok_image
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
ok_image: ^0.2.0
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:ok_image/ok_image.dart';