From c66b2e7d4d5f9c1244642fb13208177004dba19d Mon Sep 17 00:00:00 2001 From: jideguru Date: Sun, 6 Jun 2021 21:11:28 +0100 Subject: [PATCH] chore: prepare release --- lib/src/utils/javascript_executor_base.dart | 2 ++ lib/src/widgets/editor_tool_bar.dart | 2 +- lib/src/widgets/html_text.dart | 5 ++++- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/src/utils/javascript_executor_base.dart b/lib/src/utils/javascript_executor_base.dart index da03694..e0a6cd7 100644 --- a/lib/src/utils/javascript_executor_base.dart +++ b/lib/src/utils/javascript_executor_base.dart @@ -198,6 +198,8 @@ class JavascriptExecutorBase { ); } + /// Insert video from Youtube or Device + /// might work with dailymotion but i've not tested that insertVideo(String url, {int? width, int? height, bool fromDevice = true}) async { bool? local; diff --git a/lib/src/widgets/editor_tool_bar.dart b/lib/src/widgets/editor_tool_bar.dart index 99cbf9b..110bbb2 100644 --- a/lib/src/widgets/editor_tool_bar.dart +++ b/lib/src/widgets/editor_tool_bar.dart @@ -98,7 +98,7 @@ class EditorToolBar extends StatelessWidget { return InsertImageDialog(isVideo: true); }, ); - if(link != null) { + if (link != null) { if (getVideoUrl != null && link[2]) { link[0] = await getVideoUrl!(File(link[0])); } diff --git a/lib/src/widgets/html_text.dart b/lib/src/widgets/html_text.dart index 8ee4085..0415f25 100644 --- a/lib/src/widgets/html_text.dart +++ b/lib/src/widgets/html_text.dart @@ -8,6 +8,9 @@ class HtmlText extends StatelessWidget { @override Widget build(BuildContext context) { - return Container(child: HtmlWidget(html), height: 40.0,); + return Container( + child: HtmlWidget(html), + height: 40.0, + ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 645ec83..b6f30d1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: rich_editor description: WYSIWYG editor for Flutter with a rich set of supported formatting options. -version: 0.0.2 +version: 0.0.3 homepage: https://github.com/JideGuru/rich_editor environment: