Skip to content

Updated RawEditorStateTextInputClientMixin to implement DeltaTextInputClient#35

Merged
amantoux merged 12 commits into
masterfrom
use_delta_text_input_client
Feb 5, 2023
Merged

Updated RawEditorStateTextInputClientMixin to implement DeltaTextInputClient#35
amantoux merged 12 commits into
masterfrom
use_delta_text_input_client

Conversation

@Amir-P

@Amir-P Amir-P commented Sep 1, 2022

Copy link
Copy Markdown
Member

Fixes #34 and #31 .

Thanks to @cgestes for testing and finding selection issue.

@Amir-P

Amir-P commented Sep 1, 2022

Copy link
Copy Markdown
Member Author

It's still draft but can you test and provide feedback on it? @amantoux

@Amir-P Amir-P requested a review from amantoux September 1, 2022 20:02
@Amir-P Amir-P linked an issue Sep 1, 2022 that may be closed by this pull request

@amantoux amantoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/fleather/lib/src/widgets/editor_input_client_mixin.dart Outdated
@codecov

codecov Bot commented Sep 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #35 (ac27990) into master (68ae54f) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   75.45%   75.49%   +0.04%     
==========================================
  Files          57       57              
  Lines        8644     8644              
==========================================
+ Hits         6522     6526       +4     
+ Misses       2122     2118       -4     
Impacted Files Coverage Δ
...her/lib/src/widgets/editor_input_client_mixin.dart 47.15% <100.00%> (+3.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Amir-P Amir-P requested a review from amantoux September 8, 2022 17:21
@cgestes

cgestes commented Sep 27, 2022

Copy link
Copy Markdown
Contributor

what's the status of this PR? (have been using daily, works good :))

@amantoux

amantoux commented Sep 27, 2022

Copy link
Copy Markdown
Member

what's the status of this PR? (have been using daily, works good :))

There's a problem in Flutter web
Hitting suppr, the deletedRange is the same as a del when it should be TextRange(start:deletedRange.start + 1, end: deletedRange.end + 1)

@cgestes no issues on web?

Note: flutter-team-archive/engine#28527

@cgestes

cgestes commented Sep 27, 2022

Copy link
Copy Markdown
Contributor

didn't try on the web !

dang!

@amantoux

Copy link
Copy Markdown
Member

flutter/samples#1424

@cgestes

cgestes commented Oct 6, 2022

Copy link
Copy Markdown
Contributor

thanks to @amantoux for pointing out the bugs in flutter/samples.

they made a PR to fix the web issue. flutter/samples#1458

time to go forward?

@amantoux

amantoux commented Oct 6, 2022

Copy link
Copy Markdown
Member

Don't we need flutter-team-archive/engine#36616?

Beside, unfortunately (or fortunately depends on the point of view) I'm using this in production, so need to wait for it to land in a release

@amantoux amantoux force-pushed the use_delta_text_input_client branch from 676111e to 72ee09f Compare December 9, 2022 14:11
@Amir-P

Amir-P commented Jan 25, 2023

Copy link
Copy Markdown
Member Author

Looks like the issue with deltas for Web is fixed on 3.7 stable. @amantoux @cgestes

@amantoux

Copy link
Copy Markdown
Member

It needs a rebase I guess

@amantoux

Copy link
Copy Markdown
Member

@Amir-P we'll upgrade to Flutter 3.7 with #89
Can you rebase once this is done?
btw this PR is still draft, is it still intended?

@Amir-P Amir-P force-pushed the use_delta_text_input_client branch from af51eca to 9f5cb70 Compare January 28, 2023 14:23
@Amir-P

Amir-P commented Jan 28, 2023

Copy link
Copy Markdown
Member Author

There were problems with history tests using old text editing API. I've updated them and now I think we're good to go. Please review. @amantoux

@Amir-P Amir-P marked this pull request as ready for review January 28, 2023 14:29

@amantoux amantoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amir-P, overall it look good to me
I just have concerns about the dependency on Mocktail package (even if only a dev dependency)
It doesn't seem to be maintained (no code update for the last year almost)

(as discussed, it is reliable)

@amantoux amantoux merged commit b86fb8b into master Feb 5, 2023
@Amir-P Amir-P deleted the use_delta_text_input_client branch February 5, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Flutter 3.3 Typing in editor adds the previous typed text after recreating controller

3 participants