Skip to content
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

feat: select multiple lines with block selection style #936

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

LucasXu0
Copy link
Collaborator

@LucasXu0 LucasXu0 commented Oct 16, 2024

Use the API below to select multiple lines with block selection style.

      final selection = Selection.collapsed(
        Position(path: path),
      );
      editorState.updateSelectionWithReason(
        selection,
        customSelectionType: SelectionType.block,
      );
      value.configuration = value.configuration.copyWith(
        padding: (_) => const EdgeInsets.symmetric(vertical: 8.0),
        blockSelectionAreaMargin: (_) => const EdgeInsets.symmetric(
          vertical: 1.0,
        ),
      );
Screenshot 2024-10-16 at 15 07 51

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.03%. Comparing base (8ae43d4) to head (95821be).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/src/editor_state.dart 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #936      +/-   ##
==========================================
+ Coverage   72.02%   72.03%   +0.01%     
==========================================
  Files         318      318              
  Lines       15036    15046      +10     
==========================================
+ Hits        10829    10838       +9     
- Misses       4207     4208       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LucasXu0 LucasXu0 merged commit bcd1208 into AppFlowy-IO:main Oct 16, 2024
7 checks passed
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.

1 participant