fake_image_picker 1.0.0 copy "fake_image_picker: ^1.0.0" to clipboard
fake_image_picker: ^1.0.0 copied to clipboard

A ready-to-use fake implementation of the Flutter image_picker plugin. Register it in your unit tests to get deterministic, random, or custom fake images and videos without writing manual mocks.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add fake_image_picker

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  fake_image_picker: ^1.0.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:fake_image_picker/fake_image_picker.dart';
0
likes
150
points
191
downloads

Documentation

API reference

Publisher

verified publisherjackowski.dev

Weekly Downloads

A ready-to-use fake implementation of the Flutter image_picker plugin. Register it in your unit tests to get deterministic, random, or custom fake images and videos without writing manual mocks.

Repository (GitHub)
View/report issues

Topics

#image-picker #mock #testing #fake

License

MIT (license)

Dependencies

cross_file, flutter, image_picker_platform_interface, meta

More

Packages that depend on fake_image_picker