actionBar method

dynamic actionBar(
  1. dynamic context,
  2. dynamic emojiConfig,
  3. dynamic state,
  4. dynamic tabController,
  5. 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()),
        ),
      ],
    );