KeyboardConfig constructor

const KeyboardConfig({
  1. bool useEmoji = true,
  2. bool useGif = true,
  3. bool useSticker = true,
  4. String? giphyAPIKey,
  5. List<String> gifTabs = const ['Haha', 'Sad', 'Love', 'Reaction'],
  6. int gifColumns = 3,
  7. double gifVerticalSpacing = 5,
  8. double gifHorizontalSpacing = 5,
  9. int stickerColumns = 4,
  10. String gifLang = GiphyLanguage.english,
  11. double stickerHorizontalSpacing = 5,
  12. double stickerVerticalSpacing = 5,
  13. int emojiColumns = 7,
  14. double emojiSizeMax = 32.0,
  15. double emojiVerticalSpacing = 0,
  16. double emojiHorizontalSpacing = 0,
  17. EdgeInsets gridPadding = EdgeInsets.zero,
  18. Category initCategory = Category.RECENT,
  19. Color bgColor = const Color(0xFFEBEFF2),
  20. Color indicatorColor = Colors.blue,
  21. Color iconColor = Colors.grey,
  22. Color iconColorSelected = Colors.blue,
  23. Color progressIndicatorColor = Colors.blue,
  24. Color backspaceColor = Colors.blue,
  25. Color skinToneDialogBgColor = Colors.white,
  26. Color skinToneIndicatorColor = Colors.grey,
  27. bool enableSkinTones = true,
  28. bool showRecentsTab = true,
  29. int recentsLimit = 28,
  30. bool replaceRecentOnLimitExceed = false,
  31. Widget noRecents = const Text('No Recents', style: TextStyle(fontSize: 20, color: Colors.black26), textAlign: TextAlign.center),
  32. Duration tabIndicatorAnimDuration = kTabScrollDuration,
  33. CategoryIcons categoryIcons = const CategoryIcons(),
  34. ButtonMode buttonMode = ButtonMode.MATERIAL,
  35. bool withSafeArea = true,
  36. bool showBackSpace = true,
  37. bool showSearchButton = true,
})

Constructor

Implementation

const KeyboardConfig({
  this.useEmoji = true,
  this.useGif = true,
  this.useSticker = true,
  this.giphyAPIKey,
  this.gifTabs = const ['Haha', 'Sad', 'Love', 'Reaction'],
  this.gifColumns = 3,
  this.gifVerticalSpacing = 5,
  this.gifHorizontalSpacing = 5,
  this.stickerColumns = 4,
  this.gifLang = GiphyLanguage.english,
  this.stickerHorizontalSpacing = 5,
  this.stickerVerticalSpacing = 5,
  this.emojiColumns = 7,
  this.emojiSizeMax = 32.0,
  this.emojiVerticalSpacing = 0,
  this.emojiHorizontalSpacing = 0,
  this.gridPadding = EdgeInsets.zero,
  this.initCategory = Category.RECENT,
  this.bgColor = const Color(0xFFEBEFF2),
  this.indicatorColor = Colors.blue,
  this.iconColor = Colors.grey,
  this.iconColorSelected = Colors.blue,
  this.progressIndicatorColor = Colors.blue,
  this.backspaceColor = Colors.blue,
  this.skinToneDialogBgColor = Colors.white,
  this.skinToneIndicatorColor = Colors.grey,
  this.enableSkinTones = true,
  this.showRecentsTab = true,
  this.recentsLimit = 28,
  this.replaceRecentOnLimitExceed = false,
  this.noRecents = const Text(
    'No Recents',
    style: TextStyle(fontSize: 20, color: Colors.black26),
    textAlign: TextAlign.center,
  ),
  this.tabIndicatorAnimDuration = kTabScrollDuration,
  this.categoryIcons = const CategoryIcons(),
  this.buttonMode = ButtonMode.MATERIAL,
  this.withSafeArea = true,
  this.showBackSpace = true,
  this.showSearchButton = true,
});