Config constructor

const Config({
  1. int columns = 7,
  2. double emojiSizeMax = 32.0,
  3. double verticalSpacing = 0,
  4. double horizontalSpacing = 0,
  5. EdgeInsets gridPadding = EdgeInsets.zero,
  6. Category initCategory = Category.RECENT,
  7. Color bgColor = const Color(0xFFEBEFF2),
  8. Color indicatorColor = Colors.blue,
  9. Color iconColor = Colors.grey,
  10. Color iconColorSelected = Colors.blue,
  11. Color backspaceColor = Colors.blue,
  12. Color skinToneDialogBgColor = Colors.white,
  13. Color skinToneIndicatorColor = Colors.grey,
  14. bool enableSkinTones = true,
  15. RecentTabBehavior recentTabBehavior = RecentTabBehavior.RECENT,
  16. int recentsLimit = 28,
  17. bool replaceEmojiOnLimitExceed = false,
  18. Widget noRecents = DefaultNoRecentsWidget,
  19. Widget loadingIndicator = const SizedBox.shrink(),
  20. Duration tabIndicatorAnimDuration = kTabScrollDuration,
  21. CategoryIcons categoryIcons = const CategoryIcons(),
  22. ButtonMode buttonMode = ButtonMode.MATERIAL,
  23. bool checkPlatformCompatibility = true,
  24. List<CategoryEmoji>? emojiSet,
  25. TextStyle? emojiTextStyle,
  26. double? customSkinColorOverlayHorizontalOffset,
})

Constructor

Implementation

const Config({
  this.columns = 7,
  this.emojiSizeMax = 32.0,
  this.verticalSpacing = 0,
  this.horizontalSpacing = 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.backspaceColor = Colors.blue,
  this.skinToneDialogBgColor = Colors.white,
  this.skinToneIndicatorColor = Colors.grey,
  this.enableSkinTones = true,
  this.recentTabBehavior = RecentTabBehavior.RECENT,
  this.recentsLimit = 28,
  this.replaceEmojiOnLimitExceed = false,
  this.noRecents = DefaultNoRecentsWidget,
  this.loadingIndicator = const SizedBox.shrink(),
  this.tabIndicatorAnimDuration = kTabScrollDuration,
  this.categoryIcons = const CategoryIcons(),
  this.buttonMode = ButtonMode.MATERIAL,
  this.checkPlatformCompatibility = true,
  this.emojiSet,
  this.emojiTextStyle,
  this.customSkinColorOverlayHorizontalOffset,
});