Search packages, repositories and app categories

GitHub repositorykozw/giphy_picker

giphy_picker

A giphy picker for flutter

giphy_picker project cover
Stars
34
Forks
46
Last push (UTC)
Feb 20, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

giphy_picker

A Flutter package that allows you to pick animated GIF images from Giphy.

Gif

Getting Started

First, you need to register an app at the Giphy Developers Portal in order to retrieve an API key.

Pick a GIF:

import 'package:giphy_picker/giphy_picker.dart';

final gif = await GiphyPicker.pickGif(
                  context: context, 
                  apiKey: '[YOUR GIPHY APIKEY]');

Display a GIF using the GiphyImage widget. The following snippet demonstrates how to render a GIF in its original format:

Widget build(BuildContext context) {
  return GiphyImage.original(gif: gif);
}

Alternatively, load and display the GIF image using the Image widget:

Widget build(BuildContext context) {
  return Image.network(
      gif.images.original.url, 
      headers: {'accept': 'image/*'}))
}
Koen Zwikstra GitHub avatar
GitHub author

Koen Zwikstra ↗

The Netherlands
LanguagesDartC++CMakeHTMLCSwiftKotlinObjective-C

Categories

Dependencies used

Dependency list 4 items

  • flutter{"sdk":"flutter"}
  • http^1.2.1
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^2.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗