From c282f3c1c1c82c99038ba1c346e985ed0aca2c15 Mon Sep 17 00:00:00 2001 From: Rishi Raj Singh <49035175+rish07@users.noreply.github.com> Date: Sat, 6 Mar 2021 15:10:43 +0530 Subject: [PATCH 1/3] Fix Import issue (#61) * Remove conditional import * fix pickWeb * Fix all issues * fix import issue Co-authored-by: Xin Yao --- lib/widgets/editor.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index e748373e..a9f90d73 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -110,6 +110,7 @@ Widget _defaultEmbedBuilder(BuildContext context, leaf.Embed node) { } Widget _defaultEmbedBuilderWeb(BuildContext context, leaf.Embed node) { + var ui = UniversalUI(); switch (node.value.type) { case 'image': String imageUrl = node.value.data; From 94210c50de3779b9c2f344c1d47db723ef276db9 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Sat, 6 Mar 2021 01:50:01 -0800 Subject: [PATCH 2/3] Remove unused import --- app/pubspec.lock | 4 +--- lib/widgets/editor.dart | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/pubspec.lock b/app/pubspec.lock index caad158c..c45a35dd 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -145,7 +145,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "1.0.1" flutter_test: dependency: "direct dev" description: flutter @@ -464,6 +464,4 @@ packages: version: "0.1.2" sdks: dart: ">=2.12.0 <3.0.0" - flutter: ">=1.22.0" - diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index a9f90d73..3ed4423f 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -1,7 +1,6 @@ import 'dart:convert'; import 'dart:io' as io; import 'dart:math' as math; -import 'dart:ui' as ui; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; @@ -110,15 +109,12 @@ Widget _defaultEmbedBuilder(BuildContext context, leaf.Embed node) { } Widget _defaultEmbedBuilderWeb(BuildContext context, leaf.Embed node) { - var ui = UniversalUI(); switch (node.value.type) { case 'image': String imageUrl = node.value.data; Size size = MediaQuery.of(context).size; - ui.platformViewRegistry.registerViewFactory( - imageUrl, - (int viewId) => html.ImageElement()..src = imageUrl, - ); + UniversalUI().platformViewRegistry.registerViewFactory( + imageUrl, (int viewId) => html.ImageElement()..src = imageUrl); return Padding( padding: EdgeInsets.only( right: ResponsiveWidget.isMediumScreen(context) From 9174208c1d92d5038db7e1fba7dff1ab685ba2a7 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Sat, 6 Mar 2021 02:10:17 -0800 Subject: [PATCH 3/3] Update toolbar in sample home page --- CHANGELOG.md | 5 ++++- app/lib/pages/home_page.dart | 10 ++++------ app/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25a189a1..fff75fbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,4 +120,7 @@ * Support flutter 2.0. ## [1.0.1] -* Fix static analysis errors. \ No newline at end of file +* Fix static analysis errors. + +## [1.0.2] +* Update toolbar in sample home page. \ No newline at end of file diff --git a/app/lib/pages/home_page.dart b/app/lib/pages/home_page.dart index 146c3088..c0b48222 100644 --- a/app/lib/pages/home_page.dart +++ b/app/lib/pages/home_page.dart @@ -127,12 +127,10 @@ class _HomePageState extends State { ), ), ), - Expanded( - child: Container( - child: QuillToolbar.basic( - controller: _controller, - onImagePickCallback: _onImagePickCallback), - ), + Container( + child: QuillToolbar.basic( + controller: _controller, + onImagePickCallback: _onImagePickCallback), ), ], ), diff --git a/app/pubspec.lock b/app/pubspec.lock index c45a35dd..87d40445 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -145,7 +145,7 @@ packages: path: ".." relative: true source: path - version: "1.0.1" + version: "1.0.2" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 6945df09..b40f6f5a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: One client and affiliated collaborator of Flutter Quill is Bullet Journal App. -version: 1.0.1 +version: 1.0.2 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill.git