feat: use new appflowy-editor-plugins package (#5147)

* feat: use new appflowy-editor-plugins package

* fix: code block slash menu item

* chore: update build runner dependency

* chore: change dependency to pub.dev version

* chore: revert generate: false in pubspec
This commit is contained in:
Mathias Mogensen
2024-04-17 10:52:58 +02:00
committed by GitHub
parent 49e9b8c358
commit 0a5f3e8fa1
18 changed files with 311 additions and 1226 deletions

View File

@ -1,9 +1,10 @@
import 'dart:io';
import 'package:flutter/services.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
@ -23,11 +24,7 @@ void main() {
// mock the clipboard
const lines = 3;
final text = List.generate(lines, (index) => 'line $index').join('\n');
AppFlowyClipboard.mockSetData(
AppFlowyClipboardData(
text: text,
),
);
AppFlowyClipboard.mockSetData(AppFlowyClipboardData(text: text));
await insertCodeBlockInDocument(tester);