Skip to content

Commit

Permalink
support HarmonyOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zmtzawqlp committed Jan 13, 2024
1 parent d92ab38 commit d30d917
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 11.0.1-ohos

* support HarmonyOS

# 11.0.1

* fix issue on ios after flutter version 3.7.0. #191 #198
Expand Down
2 changes: 2 additions & 0 deletions lib/src/extended_editable_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ class ExtendedEditableText extends StatefulWidget {
}
break;
case TargetPlatform.android:
case TargetPlatform.ohos:
case TargetPlatform.fuchsia:
case TargetPlatform.linux:
case TargetPlatform.windows:
Expand Down Expand Up @@ -1370,6 +1371,7 @@ class ExtendedEditableTextState extends State<ExtendedEditableText>
break;
case TargetPlatform.macOS:
case TargetPlatform.android:
case TargetPlatform.ohos:
case TargetPlatform.fuchsia:
case TargetPlatform.linux:
case TargetPlatform.windows:
Expand Down
2 changes: 2 additions & 0 deletions lib/src/extended_render_editable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,7 @@ class ExtendedRenderEditable extends ExtendedTextSelectionRenderObject {
Rect.fromLTWH(0.0, 0.0, cursorWidth, cursorHeight + 2);
break;
case TargetPlatform.android:
case TargetPlatform.ohos:
case TargetPlatform.fuchsia:
case TargetPlatform.linux:
case TargetPlatform.windows:
Expand Down Expand Up @@ -2294,6 +2295,7 @@ class _FloatingCursorPainter extends ExtendedRenderEditablePainter {
);
break;
case TargetPlatform.android:
case TargetPlatform.ohos:
case TargetPlatform.fuchsia:
case TargetPlatform.linux:
case TargetPlatform.windows:
Expand Down
2 changes: 2 additions & 0 deletions lib/src/extended_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ class ExtendedTextFieldState extends State<ExtendedTextField>
case TargetPlatform.windows:
case TargetPlatform.fuchsia:
case TargetPlatform.android:
case TargetPlatform.ohos:
if (cause == SelectionChangedCause.drag) {
_editableText?.bringIntoView(selection.extent);
}
Expand Down Expand Up @@ -1247,6 +1248,7 @@ class ExtendedTextFieldState extends State<ExtendedTextField>
break;

case TargetPlatform.android:
case TargetPlatform.ohos:
case TargetPlatform.fuchsia:
forcePressEnabled = false;
textSelectionControls ??= materialTextSelectionControls;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: extended_text_field
description: Extended official text field to build special text like inline image, @somebody, custom background etc quickly.It also support to build custom seleciton toolbar and handles.
version: 11.0.1
version: 11.0.1-ohos
homepage: https://github.com/fluttercandies/extended_text_field

environment:
Expand Down

0 comments on commit d30d917

Please sign in to comment.