Skip to content

Commit

Permalink
Prepare 2.0.1 to pub
Browse files Browse the repository at this point in the history
  • Loading branch information
tneotia committed Apr 28, 2021
1 parent a6c3ed1 commit c29b2de
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 131 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [2.0.1] - 2021-04-28
* Added support for setting custom `UserScript`s on the webview (mobile only)
* Added support for customizing the context menu (menu when user selects text) for the webview (mobile only)
* Added `LongPressGestureRecognizer` to the webview to allow users to select text via a long press (mobile only)
* You can set the duration before the long press is recognized via `HtmlEditorOptions > mobileLongPressDuration`
* Added support for placing the toolbar wherever using `HtmlToolbarOptions > toolbarPosition: ToolbarPosition.custom`
* See the README if you'd like to use any of these new features. `UserScript` and the context menu customization have external documentation via flutter_inappwebview - the docs are linked in the README.

## [2.0.0+1] - 2021-04-22
* Transitioned to fully native controls! These are extremely customizable and have much better UX than the previous controls.
* [BREAKING] refactored a lot of options into separate constructors
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.0+1"
version: "2.0.1"
infinite_listview:
dependency: transitive
description:
Expand Down
9 changes: 6 additions & 3 deletions lib/src/widgets/html_editor_widget_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,16 @@ class _HtmlEditorWidgetMobileState extends State<HtmlEditorWidget> {
useHybridComposition: true,
loadWithOverviewMode: true,
)),
initialUserScripts: widget.htmlEditorOptions.mobileInitialScripts,
initialUserScripts:
widget.htmlEditorOptions.mobileInitialScripts,
contextMenu: widget.htmlEditorOptions.mobileContextMenu,
gestureRecognizers: {
Factory<VerticalDragGestureRecognizer>(
() => VerticalDragGestureRecognizer()),
Factory<LongPressGestureRecognizer>(
() => LongPressGestureRecognizer(duration: widget.htmlEditorOptions.mobileLongPressDuration)),
Factory<LongPressGestureRecognizer>(() =>
LongPressGestureRecognizer(
duration: widget
.htmlEditorOptions.mobileLongPressDuration)),
},
onConsoleMessage: (controller, message) {
print(message.message);
Expand Down
Loading

0 comments on commit c29b2de

Please sign in to comment.