diff --git a/packages/appflowy_editor_plugins/example/pubspec.lock b/packages/appflowy_editor_plugins/example/pubspec.lock index 8ff8131..fa526e4 100644 --- a/packages/appflowy_editor_plugins/example/pubspec.lock +++ b/packages/appflowy_editor_plugins/example/pubspec.lock @@ -606,10 +606,10 @@ packages: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" string_validator: dependency: transitive description: @@ -666,6 +666,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.2" + universal_platform: + dependency: transitive + description: + name: universal_platform + sha256: "64e16458a0ea9b99260ceb5467a214c1f298d647c659af1bff6d3bf82536b1ec" + url: "https://pub.dev" + source: hosted + version: "1.1.0" url_launcher: dependency: transitive description: @@ -774,10 +782,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" watcher: dependency: transitive description: diff --git a/packages/appflowy_editor_plugins/lib/src/code_block/code_block_block_component.dart b/packages/appflowy_editor_plugins/lib/src/code_block/code_block_block_component.dart index 0909b3b..7a5bb71 100644 --- a/packages/appflowy_editor_plugins/lib/src/code_block/code_block_block_component.dart +++ b/packages/appflowy_editor_plugins/lib/src/code_block/code_block_block_component.dart @@ -1,15 +1,15 @@ import 'dart:async'; -import 'package:flutter/material.dart'; - import 'package:appflowy_editor/appflowy_editor.dart'; import 'package:appflowy_editor_plugins/src/code_block/code_block_actions.dart'; import 'package:appflowy_editor_plugins/src/code_block/code_block_localization.dart'; import 'package:appflowy_editor_plugins/src/code_block/code_block_style.dart'; import 'package:appflowy_editor_plugins/src/utils/string_ext.dart'; +import 'package:flutter/material.dart'; import 'package:highlight/highlight.dart' as highlight; import 'package:highlight/languages/all.dart'; import 'package:provider/provider.dart'; +import 'package:universal_platform/universal_platform.dart'; import 'code_block_themes.dart'; @@ -419,7 +419,7 @@ class _CodeBlockComponentWidgetState extends State if (widget.actionWrapperBuilder != null) { child = widget.actionWrapperBuilder!(node, editorState, child); - } else if (PlatformExtension.isDesktopOrWeb) { + } else if (UniversalPlatform.isDesktopOrWeb) { if (widget.showActions && widget.actionBuilder != null) { child = BlockComponentActionWrapper( node: widget.node, diff --git a/packages/appflowy_editor_plugins/pubspec.yaml b/packages/appflowy_editor_plugins/pubspec.yaml index 64e307b..c26b8d9 100644 --- a/packages/appflowy_editor_plugins/pubspec.yaml +++ b/packages/appflowy_editor_plugins/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: flutter: sdk: flutter - appflowy_editor: ^2.3.4 + appflowy_editor: ^3.3.0 provider: ^6.1.2 # Link Preview Plugin @@ -37,6 +37,8 @@ dependencies: # Code Block Plugin highlight: ^0.7.0 + universal_platform: ^1.1.0 + dev_dependencies: flutter_lints: ^3.0.2