chore: prepare release

This commit is contained in:
jideguru 2021-06-06 21:11:28 +01:00
parent 7b809401ec
commit c66b2e7d4d
4 changed files with 8 additions and 3 deletions

View File

@ -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, insertVideo(String url,
{int? width, int? height, bool fromDevice = true}) async { {int? width, int? height, bool fromDevice = true}) async {
bool? local; bool? local;

View File

@ -98,7 +98,7 @@ class EditorToolBar extends StatelessWidget {
return InsertImageDialog(isVideo: true); return InsertImageDialog(isVideo: true);
}, },
); );
if(link != null) { if (link != null) {
if (getVideoUrl != null && link[2]) { if (getVideoUrl != null && link[2]) {
link[0] = await getVideoUrl!(File(link[0])); link[0] = await getVideoUrl!(File(link[0]));
} }

View File

@ -8,6 +8,9 @@ class HtmlText extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container(child: HtmlWidget(html), height: 40.0,); return Container(
child: HtmlWidget(html),
height: 40.0,
);
} }
} }

View File

@ -1,6 +1,6 @@
name: rich_editor name: rich_editor
description: WYSIWYG editor for Flutter with a rich set of supported formatting options. 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 homepage: https://github.com/JideGuru/rich_editor
environment: environment: