Skip to content

Issue 172: Delete CodeController.theme, bump version to 0.3.0 #247

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

Merged
merged 4 commits into from
Jun 8, 2023

Conversation

nausharipov
Copy link
Collaborator

Deleted CodeController.stringMap.
Resolves #172

@nausharipov nausharipov requested a review from alexeyinkin June 7, 2023 13:18
CHANGELOG.md Outdated
Comment on lines 1 to 3
## 0.3.0
* **BREAKING:** Deleted `CodeController.stringMap`.
* **BREAKING:** Deleted `theme` from `CodeController`, (Issue [172](https://github.com/akvelon/flutter-code-editor/issues/172)).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## 0.3.0
* **BREAKING:** Deleted `CodeController.stringMap`.
* **BREAKING:** Deleted `theme` from `CodeController`, (Issue [172](https://github.com/akvelon/flutter-code-editor/issues/172)).
## 0.3.0
* **BREAKING:** Deleted `CodeController.stringMap`.
* **BREAKING:** Deleted `CodeController.theme`, (Issue [172](https://github.com/akvelon/flutter-code-editor/issues/172)).

Comment on lines 902 to 906
// This check is disabled, because _processPatterns
// breaks emoji display and is was not useful.
// if (_styleRegExp != null) {
// return _processPatterns(text, style);
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete.

Comment on lines 911 to 943
// TextSpan _processPatterns(String text, TextStyle? style) {
// final children = <TextSpan>[];

// text.splitMapJoin(
// _styleRegExp!,
// onMatch: (Match m) {
// if (_styleList.isEmpty) {
// return '';
// }

// int idx;
// for (idx = 1;
// idx < m.groupCount &&
// idx <= _styleList.length &&
// m.group(idx) == null;
// idx++) {}

// children.add(
// TextSpan(
// text: m[0],
// style: _styleList[idx - 1],
// ),
// );
// return '';
// },
// onNonMatch: (String span) {
// children.add(TextSpan(text: span, style: style));
// return '';
// },
// );

// return TextSpan(style: style, children: children);
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete.

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #247 (ae9e78b) into main (b4e7714) will increase coverage by 0.54%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #247      +/-   ##
==========================================
+ Coverage   81.96%   82.50%   +0.54%     
==========================================
  Files         107      107              
  Lines        3166     3144      -22     
==========================================
- Hits         2595     2594       -1     
+ Misses        571      550      -21     
Impacted Files Coverage Δ
lib/src/code_field/code_controller.dart 86.19% <ø> (+4.71%) ⬆️
lib/src/gutter/gutter.dart 85.24% <ø> (ø)
lib/src/code_field/code_field.dart 93.57% <100.00%> (+0.02%) ⬆️

@nausharipov nausharipov requested a review from alexeyinkin June 7, 2023 16:09
@alexeyinkin alexeyinkin merged commit 51dbeea into main Jun 8, 2023
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.

Delete CodeController.theme
2 participants