Skip to content

No Underline Under Extra Icon in Catagories #243

@eliahreeves

Description

@eliahreeves

The search icon doesn't have an underline.
Image

class EmojiSelector extends StatelessWidget {
  const EmojiSelector({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Select Emoji'),
        automaticallyImplyLeading: false,
        leading: IconButton(
          icon: Icon(
            Icons.arrow_back_ios_rounded,
            color: Theme.of(context).colorScheme.onSurface,
            size: 20,
          ),
          onPressed: () => context.pop(),
        ),
      ),
      body: SizedBox.expand(
        child: EmojiPicker(
          onEmojiSelected: (Category? category, Emoji? emoji) {
            context.pop<String?>(emoji?.emoji);
          },
          config: Config(
              viewOrderConfig: ViewOrderConfig(
                  top: EmojiPickerItem.categoryBar,
                  middle: EmojiPickerItem.emojiView),
              bottomActionBarConfig: BottomActionBarConfig(enabled: false),
              categoryViewConfig: CategoryViewConfig(
                iconColor: Theme.of(context).colorScheme.onSurface,
                iconColorSelected: Theme.of(context).colorScheme.primary,
                backgroundColor: Theme.of(context).colorScheme.surface,
                indicatorColor: Theme.of(context).colorScheme.primary,
                recentTabBehavior: RecentTabBehavior.NONE,
                extraTab: CategoryExtraTab.SEARCH,
              ),
              emojiViewConfig: EmojiViewConfig(
                  backgroundColor: Theme.of(context).colorScheme.surface),
              searchViewConfig: SearchViewConfig(
                backgroundColor: Theme.of(context).colorScheme.surface,
                buttonIconColor: Theme.of(context).colorScheme.onSurface,
              )),
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions