GiphySheet constructor
const
GiphySheet({
- Key? key,
- required GiphyClient client,
- required GiphyRequest request,
- Widget gridBuilder(
- BuildContext context,
- GiphySource source,
- void onSelected()
- Widget errorBuilder(
- BuildContext context,
- dynamic error,
- StackTrace? stackTrace
- InputDecoration? searchInputDecoration,
- String? searchLabelText,
- String? searchHintText,
- String? searchEmptyResultText,
- String? searchCancelText,
- void onSelected(
- GiphyGif gif
- Widget? attribution,
- bool showAttribution = true,
- bool showSearch = true,
- bool showTypeSwitcher = true,
- bool showPreview = false,
- bool keepState = false,
- String? headerGifsText,
- String? headerStickersText,
- String? headerEmojiText,
- double gridSpacing = 2.0,
- BorderRadius? gridBorderRadius,
- BorderRadius? previewBorderRadius,
- ScrollController? scrollController,
- int gridMinColumns = 2,
- 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);