KeyboardConfig constructor
const
KeyboardConfig({
- int stickerColumns = 4,
- double stickerHorizontalSpacing = 5,
- double stickerVerticalSpacing = 5,
- EdgeInsets gridPadding = EdgeInsets.zero,
- Color bgColor = const Color(0xFFEBEFF2),
- Color indicatorColor = Colors.blue,
- Color iconColor = Colors.grey,
- Color iconColorSelected = Colors.blue,
- Color progressIndicatorColor = Colors.blue,
- Color backspaceColor = Colors.blue,
- bool showRecentsTab = true,
- int recentsLimit = 28,
- bool replaceRecentOnLimitExceed = false,
- Widget noRecents = const Text('No Recents', style: TextStyle(fontSize: 20, color: Colors.black26), textAlign: TextAlign.center),
- Duration tabIndicatorAnimDuration = kTabScrollDuration,
- bool withSafeArea = true,
- bool showBackSpace = false,
- bool showSearchButton = true,
- List<
CategorySticker> stickers = const [], - CategoryTabBuilder? categoryTabBuilder,
- List<
CustomKeyboardTab> customTabs = const [], - 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,
});