KeyboardConfig constructor
const
KeyboardConfig({
- bool useEmoji = true,
- bool useGif = true,
- bool useSticker = true,
- String? giphyAPIKey,
- List<
String> gifTabs = const ['Haha', 'Sad', 'Love', 'Reaction'], - int gifColumns = 3,
- double gifVerticalSpacing = 5,
- double gifHorizontalSpacing = 5,
- int stickerColumns = 4,
- String gifLang = GiphyLanguage.english,
- double stickerHorizontalSpacing = 5,
- double stickerVerticalSpacing = 5,
- int emojiColumns = 7,
- double emojiSizeMax = 32.0,
- double emojiVerticalSpacing = 0,
- double emojiHorizontalSpacing = 0,
- EdgeInsets gridPadding = EdgeInsets.zero,
- Category initCategory = Category.RECENT,
- 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,
- Color skinToneDialogBgColor = Colors.white,
- Color skinToneIndicatorColor = Colors.grey,
- bool enableSkinTones = true,
- 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,
- CategoryIcons categoryIcons = const CategoryIcons(),
- ButtonMode buttonMode = ButtonMode.MATERIAL,
- bool withSafeArea = true,
- bool showBackSpace = true,
- 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,
});