From 97429bcb342cd863cf51fc37825dea55e54088da Mon Sep 17 00:00:00 2001 From: tanay Date: Fri, 19 Feb 2021 15:15:07 -0500 Subject: [PATCH] Minor updates before publishing to pub --- example/pubspec.lock | 46 +++++++++++++++----------------------------- lib/html_editor.dart | 12 ++++++------ pubspec.lock | 42 +++++++++++++--------------------------- pubspec.yaml | 8 ++------ 4 files changed, 36 insertions(+), 72 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 275d48c1..f1a4dc54 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -43,13 +43,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "2.1.5" cupertino_icons: dependency: "direct main" description: @@ -57,20 +64,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.2" - device_info: - dependency: transitive - description: - name: device_info - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0-nullsafety.2" - device_info_platform_interface: - dependency: transitive - description: - name: device_info_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0-nullsafety.2" fake_async: dependency: transitive description: @@ -86,12 +79,10 @@ packages: flutter_inappwebview: dependency: transitive description: - path: "." - ref: master - resolved-ref: de9d081af2ebea0dcfb3180255335c29e4cfd8e5 - url: "https://github.com/pichillilorenzo/flutter_inappwebview.git" - source: git - version: "5.0.0-nullsafety.0" + name: flutter_inappwebview + url: "https://pub.dartlang.org" + source: hosted + version: "4.0.0+4" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -139,13 +130,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.6" - intl: - dependency: transitive - description: - name: intl - url: "https://pub.dartlang.org" - source: hosted - version: "0.17.0" matcher: dependency: transitive description: @@ -166,7 +150,7 @@ packages: name: mime url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "0.9.7" path: dependency: transitive description: @@ -248,7 +232,7 @@ packages: name: uuid url: "https://pub.dartlang.org" source: hosted - version: "3.0.0-nullsafety.1" + version: "2.2.2" vector_math: dependency: transitive description: @@ -258,4 +242,4 @@ packages: version: "2.1.0" sdks: dart: ">=2.12.0-0.0 <3.0.0" - flutter: ">=1.22.2" + flutter: ">=1.20.0" diff --git a/lib/html_editor.dart b/lib/html_editor.dart index 7314ffbf..e847d795 100644 --- a/lib/html_editor.dart +++ b/lib/html_editor.dart @@ -57,14 +57,14 @@ class HtmlEditor extends StatelessWidget with WidgetsBindingObserver { crossPlatform: InAppWebViewOptions( javaScriptEnabled: true, ), - android: AndroidInAppWebViewOptions( + //todo flutter_inappwebview 5.0.0 + /*android: AndroidInAppWebViewOptions( useHybridComposition: true, - ) + )*/ ), - gestureRecognizers: [ - Factory( - () => VerticalDragGestureRecognizer()..onUpdate = (_) {}), - ].toSet(), + gestureRecognizers: { + Factory(() => VerticalDragGestureRecognizer()) + }, onConsoleMessage: (controller, message) { String isi = message.message; if (isi.isEmpty || diff --git a/pubspec.lock b/pubspec.lock index e437b7a9..bd99ce7b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -43,27 +43,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" - crypto: + convert: dependency: transitive description: - name: crypto + name: convert url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" - device_info: - dependency: transitive - description: - name: device_info - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0-nullsafety.2" - device_info_platform_interface: + version: "2.1.1" + crypto: dependency: transitive description: - name: device_info_platform_interface + name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.0.0-nullsafety.2" + version: "2.1.5" fake_async: dependency: transitive description: @@ -79,12 +72,10 @@ packages: flutter_inappwebview: dependency: "direct main" description: - path: "." - ref: master - resolved-ref: de9d081af2ebea0dcfb3180255335c29e4cfd8e5 - url: "https://github.com/pichillilorenzo/flutter_inappwebview.git" - source: git - version: "5.0.0-nullsafety.0" + name: flutter_inappwebview + url: "https://pub.dartlang.org" + source: hosted + version: "4.0.0+4" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -125,13 +116,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.6" - intl: - dependency: transitive - description: - name: intl - url: "https://pub.dartlang.org" - source: hosted - version: "0.17.0" matcher: dependency: transitive description: @@ -152,7 +136,7 @@ packages: name: mime url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "0.9.7" path: dependency: "direct main" description: @@ -234,7 +218,7 @@ packages: name: uuid url: "https://pub.dartlang.org" source: hosted - version: "3.0.0-nullsafety.1" + version: "2.2.2" vector_math: dependency: transitive description: @@ -244,4 +228,4 @@ packages: version: "2.1.0" sdks: dart: ">=2.12.0-0.0 <3.0.0" - flutter: ">=1.22.2" + flutter: ">=1.20.0" diff --git a/pubspec.yaml b/pubspec.yaml index 73e4f0e1..aedf913c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,6 @@ name: html_editor_enhanced description: HTML Editor Enhanced is a text editor for Android and iOS to help write WYSIWYG HTML code using Summernote. Initially created by @xrb21, enhanced version maintained by @tneotia. version: 1.1.0 -author: Tanay Neotia homepage: https://github.com/tneotia/html-editor-enhanced environment: @@ -11,13 +10,10 @@ environment: dependencies: flutter: sdk: flutter - flutter_inappwebview: - git: - url: https://github.com/pichillilorenzo/flutter_inappwebview.git - ref: master + flutter_inappwebview: ^4.0.0+4 image_picker: ^0.6.7+22 path: ^1.8.0 - mime: ^1.0.0 + mime: ^0.9.6+2 dev_dependencies: flutter_test: