flutter_tenor_gif_picker 0.0.1 copy "flutter_tenor_gif_picker: ^0.0.1" to clipboard
flutter_tenor_gif_picker: ^0.0.1 copied to clipboard

Tenor gif picker

Flutter gif picker with Tenor Service.

Getting started #

Add Dependency to Flutter

dependencies:
  flutter_tenor_gif_picker: ^0.0.1

Usage #

Initialize #

TenorGifPicker.init(
      apiKey: 'YOUR_API_KEY',
      locale: 'en_IN',
      clientKey: 'test_app',
      country: 'IN'
  );

Open as Bottomsheet #

TenorGifPickerPage.showAsBottomSheet(context);

Open as Page #

TenorGifPickerPage.openAsPage(context,);

Additional Parameters #

  • PreLoad Text
TenorGifPickerPage.showAsBottomSheet(
                  context,
                  preLoadText: 'cricket, football',
                ).then(
                  (tenorData) {
                    print("Selection $tenorData");
                  },
                );
  • Custom Categories
TenorGifPickerPage.showAsBottomSheet(
                  context,
                  customCategories: [
                    'HaHa',
                    'Love',
                    'Sports',
                    'Memes',
                    'Reaction'
                  ],
                ).then(
                  (tenorData) {
                    print("Selection $tenorData");
                  },
                );
  • Hide/Show category
TenorGifPickerPage.showAsBottomSheet(
                  context,
                  showCategory: true,
                  categoryType: CategoryType.featured,
                ).then(
                  (tenorData) {
                    print("Selection $tenorData");
                  },
                );


Category Type (enum):

CategoryType.featured, CategoryType.trending

default category type is CategoryType.featured

Additional information #

See TenorApiService also Click here