KeyboardConfig constructor

const KeyboardConfig({
  1. int stickerColumns = 4,
  2. double stickerHorizontalSpacing = 5,
  3. double stickerVerticalSpacing = 5,
  4. EdgeInsets gridPadding = EdgeInsets.zero,
  5. Color bgColor = const Color(0xFFEBEFF2),
  6. Color indicatorColor = Colors.blue,
  7. Color iconColor = Colors.grey,
  8. Color iconColorSelected = Colors.blue,
  9. Color progressIndicatorColor = Colors.blue,
  10. Color backspaceColor = Colors.blue,
  11. bool showRecentsTab = true,
  12. int recentsLimit = 28,
  13. bool replaceRecentOnLimitExceed = false,
  14. Widget noRecents = const Text('No Recents', style: TextStyle(fontSize: 20, color: Colors.black26), textAlign: TextAlign.center),
  15. Duration tabIndicatorAnimDuration = kTabScrollDuration,
  16. bool withSafeArea = true,
  17. bool showBackSpace = false,
  18. bool showSearchButton = true,
  19. bool showBottomNav = true,
  20. List<CategorySticker> stickers = const [],
  21. CategoryTabBuilder? categoryTabBuilder,
  22. List<CustomKeyboardTab> customTabs = const [],
  23. CustomTabPlacement customTabPlacement = CustomTabPlacement.afterCategories,
})

Constructor

Implementation

const KeyboardConfig({
  this.stickerColumns = 4,
  this.stickerHorizontalSpacing = 5,
  this.stickerVerticalSpacing = 5,
  this.gridPadding = EdgeInsets.zero,
  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.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.withSafeArea = true,
  this.showBackSpace = false,
  this.showSearchButton = true,
  this.showBottomNav = true,
  this.stickers = const [],
  this.categoryTabBuilder,
  this.customTabs = const [],
  this.customTabPlacement = CustomTabPlacement.afterCategories,
});