headingMobileToolbarItem top-level property
Implementation
final headingMobileToolbarItem = MobileToolbarItem.withMenu(
itemIconBuilder: (context, __, ___) => AFMobileIcon(
afMobileIcons: AFMobileIcons.heading,
color: MobileToolbarTheme.of(context).iconColor,
),
itemMenuBuilder: (_, editorState, __) {
final selection = editorState.selection;
if (selection == null) {
return const SizedBox.shrink();
}
return _HeadingMenu(
selection,
editorState,
);
},
);