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