pexels_photos_videos 0.0.10 pexels_photos_videos: ^0.0.10 copied to clipboard
This package will help you to get data from pexels.com. It's easy to use and get all details related to media which is requested.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pexels_photos_videos
With Flutter:
$ flutter pub add pexels_photos_videos
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
pexels_photos_videos: ^0.0.10
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pexels_photos_videos/pexels_media.dart';
import 'package:pexels_photos_videos/pexels_result.dart';