GiphySheet constructor

const GiphySheet({
  1. Key? key,
  2. required GiphyClient client,
  3. required GiphyRequest request,
  4. Widget gridBuilder(
    1. BuildContext context,
    2. GiphySource source,
    3. void onSelected(
      1. GiphyGif
      )
    )?,
  5. Widget errorBuilder(
    1. BuildContext context,
    2. dynamic error,
    3. StackTrace? stackTrace
    )?,
  6. InputDecoration? searchInputDecoration,
  7. String? searchLabelText,
  8. String? searchHintText,
  9. String? searchEmptyResultText,
  10. String? searchCancelText,
  11. void onSelected(
    1. GiphyGif gif
    )?,
  12. Widget? attribution,
  13. bool showAttribution = true,
  14. bool showSearch = true,
  15. bool showTypeSwitcher = true,
  16. bool showPreview = false,
  17. bool keepState = false,
  18. String? headerGifsText,
  19. String? headerStickersText,
  20. String? headerEmojiText,
  21. double gridSpacing = 2.0,
  22. BorderRadius? gridBorderRadius,
  23. BorderRadius? previewBorderRadius,
  24. ScrollController? scrollController,
  25. int gridMinColumns = 2,
  26. GridType gridType = GridType.stackedColumns,
})

Creates a new GiphySheet

Implementation

const GiphySheet({
  Key? key,
  required this.client,
  required this.request,
  this.gridBuilder,
  this.errorBuilder,
  this.searchInputDecoration,
  this.searchLabelText,
  this.searchHintText,
  this.searchEmptyResultText,
  this.searchCancelText,
  this.onSelected,
  this.attribution,
  this.showAttribution = true,
  this.showSearch = true,
  this.showTypeSwitcher = true,
  this.showPreview = false,
  this.keepState = false,
  this.headerGifsText,
  this.headerStickersText,
  this.headerEmojiText,
  this.gridSpacing = 2.0,
  this.gridBorderRadius,
  this.previewBorderRadius,
  this.scrollController,
  this.gridMinColumns = 2,
  this.gridType = GridType.stackedColumns,
}) : super(key: key);