Flutter version 3.0.5
Description
this package is a renew version of Giphy_Picker.
The idea of this package is to create different UI solutions so that each developer can adapt it to their project or customize it to their liking.
Getting started
First you need to create your own (Giphy API Key)https://developers.giphy.com/
- Pick a gif from
modal_bottom_bottom_sheetasasyncfunction
final gif = await ModalGifPicker.pickModalSheetGif(
apiKey: '[HERE YOUR API KEY]',
context: context,
rating: GiphyRating.g,
sticker: true,
backDropColor: Colors.black,
crossAxisCount: 3,
childAspectRatio: 1.2,
topDragColor: Colors.white.withOpacity(0.2),
previewType: GiphyPreviewType.previewWebp,
);
- use
GiphyRenderImage.originalto render the picked gif andgifparameter
SafeArea(
child: Center(
child: GiphyRenderImage.original(gif: _gif!),
),
),
Demo
