actionBar method
dynamic
actionBar( - dynamic context,
- dynamic emojiConfig,
- dynamic state,
- dynamic tabController,
- dynamic pageController,
)
Implementation
Widget actionBar(
BuildContext context,
EmojiViewConfig emojiConfig,
EmojiViewState state,
TabController tabController,
PageController pageController,
) =>
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
IconButton(
onPressed: state.onShowSearchView,
icon: Icon(PhosphorIcons.magnifyingGlass()),
),
Expanded(
child: DefaultCategoryView(
Config(
emojiViewConfig: emojiConfig,
categoryViewConfig: CategoryViewConfig(
backgroundColor: Theme.of(context).colorScheme.surface,
initCategory: Category.RECENT,
),
),
state,
tabController,
pageController,
),
),
if (onBackspacePressed != null)
IconButton(
onPressed: onBackspacePressed,
icon: Icon(PhosphorIcons.backspace()),
),
IconButton(
onPressed: onClosePicker,
icon: Icon(PhosphorIcons.xCircle()),
),
],
);