Skip to content

Commit

Permalink
chore: update editor dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Sep 12, 2024
1 parent 87af520 commit b228456
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
16 changes: 12 additions & 4 deletions packages/appflowy_editor_plugins/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -419,7 +419,7 @@ class _CodeBlockComponentWidgetState extends State<CodeBlockComponentWidget>

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,
Expand Down
4 changes: 3 additions & 1 deletion packages/appflowy_editor_plugins/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,6 +37,8 @@ dependencies:
# Code Block Plugin
highlight: ^0.7.0

universal_platform: ^1.1.0

dev_dependencies:
flutter_lints: ^3.0.2

Expand Down

0 comments on commit b228456

Please sign in to comment.