-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Replace flutter-quill
with visual-editor
#3
Comments
I'm trying to install
I'm using Created issue on visual-space/visual-editor#234 |
Definitely open that issue on the project repo and propose the update. 👌 |
Just going to give an update on this issue. The reason it's not been migrated The example of the package was only working on an older version of This is why the following issues and updates have been opened, linked here and occured in the following:
I'm practically done with the PR that updates the dependencies that should hopefully fix my blocker when installing and migrating I haven't opened the PR yet because, as per |
Created visual-space/visual-editor#237 to address these concerns. |
I've added changes to the PR visual-space/visual-editor#237 related to visual-space/visual-editor#238. It's needed because it's using a library This will make it impossible to install |
@LuchoTurtle please use your |
Migrating is taking much more time than usual. The migration guide, although useful, is a bit incomplete. And the fields between Some features are missing (setting subscript and superscript, for example). As I'm diving into their code (much more organized and documented, I ought to admit), I'm adding information to their |
I keep getting this darn error when I tap on mobile devices after initializing the app: ════════ Exception caught by gesture ═══════════════════════════════════════════
The following _TypeError was thrown while handling a gesture:
type 'Null' is not a subtype of type 'BlockM' in type cast The error is here. I don't know where this gets called on I'll see if I can solve the issue locally before opening an issue 👌 |
Created the issue in visual-space/visual-editor#239. |
yeah, this kind of |
That's nuts! Are we on |
I thought I got it fixed but turns out that me checking for the In addition to this, running the original example from their repo, selecting text and copy/pasting doesn't properly work. Having perused their code, this also makes sense, since apparently these methods are not being called. Here's what happens: 23-09-20-11-38-48.mp4When I try to make changes to fix the issue opened in visual-space/visual-editor#239, the error does not pop up, but the behaviour is the same. Here's how I'm trying to fix it: NodePositionM queryChild(int offset) {
final nodePos = _contUtils.queryChild(rootNode, offset, true);
// Changing here. I'm checking if it's null. If it is, I'll return the `rootNode.defaultChild`, because it's the only way of returning a `LineM` object.
if (nodePos.node == null) {
return NodePositionM(rootNode.defaultChild, 0);
}
if (nodePos.node is LineM) {
return nodePos;
}
final block = nodePos.node as BlockM;
return _contUtils.queryChild(block, nodePos.offset, true);
} I can create the PR for the fix (alongside another But as it stands, I don't think I'm going to alter this PR so the original files are not changed. I'll just put the migration files in their dedicated folder so people who see this repo are able to see both versions. |
Created both of these PRs:
|
https://github.com/AppFlowy-IO/appflowy-editor might be another option to consider, as it provides |
As noted by @LuchoTurtle in singerdmx/flutter-quill#1389 a brick wall was hit in terms of testing with
flutter-quill
. 🧱 😢Therefore we need to:
visual-editor
as fast as possible, ideally in less than a day.This should be straightforward as
visual-editor
is afork
offlutter-quill
so there should be significant overlap/similarity.If there is a lot of divergence, and it's not a "find and replace" job, please leave comments! 💬 🙏
The text was updated successfully, but these errors were encountered: