diff --git a/lib/src/editor/toolbar/mobile/mobile_toolbar.dart b/lib/src/editor/toolbar/mobile/mobile_toolbar.dart index d16bd241f..807d5e717 100644 --- a/lib/src/editor/toolbar/mobile/mobile_toolbar.dart +++ b/lib/src/editor/toolbar/mobile/mobile_toolbar.dart @@ -71,7 +71,7 @@ class MobileToolbar extends StatelessWidget { buttonSelectedBorderWidth: buttonSelectedBorderWidth, child: MobileToolbarWidget( // Use selection as key to force rebuild toolbar widget when selection changed. - key: ValueKey(selection), + // key: ValueKey(selection), editorState: editorState, selection: selection, toolbarItems: toolbarItems, diff --git a/lib/src/editor/toolbar/mobile/mobile_toolbar_item.dart b/lib/src/editor/toolbar/mobile/mobile_toolbar_item.dart index ffb705200..91059f791 100644 --- a/lib/src/editor/toolbar/mobile/mobile_toolbar_item.dart +++ b/lib/src/editor/toolbar/mobile/mobile_toolbar_item.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; typedef MobileToolbarItemMenuBuilder = Widget Function( EditorState editorState, Selection selection, - // To accees to the state of MobileToolbarWidget + // To access to the state of MobileToolbarWidget MobileToolbarWidgetService service, );