From 711e47d0f59d6d58a7de040726bbcb7b9cf0cd0b Mon Sep 17 00:00:00 2001 From: Ellet <73608287+freshtechtips@users.noreply.github.com> Date: Sun, 5 Nov 2023 23:39:37 +0300 Subject: [PATCH] Disable camera option by default on desktop --- example/lib/pages/read_only_page.dart | 4 +++- flutter_quill_extensions/CHANGELOG.md | 3 +++ flutter_quill_extensions/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/example/lib/pages/read_only_page.dart b/example/lib/pages/read_only_page.dart index 4324051d..82b8185f 100644 --- a/example/lib/pages/read_only_page.dart +++ b/example/lib/pages/read_only_page.dart @@ -40,7 +40,9 @@ class _ReadOnlyPageState extends State { configurations: QuillEditorConfigurations( expands: false, padding: EdgeInsets.zero, - embedBuilders: FlutterQuillEmbeds.editorBuilders(), + embedBuilders: kIsWeb + ? FlutterQuillEmbeds.editorsWebBuilders() + : FlutterQuillEmbeds.editorBuilders(), scrollable: true, autoFocus: true, ), diff --git a/flutter_quill_extensions/CHANGELOG.md b/flutter_quill_extensions/CHANGELOG.md index 7d5a3a5c..a434c84a 100644 --- a/flutter_quill_extensions/CHANGELOG.md +++ b/flutter_quill_extensions/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.6.0-dev.3 +- Disable the camera option by default on desktop + ## 0.6.0-dev.2 - Another breaking changes, we will add mirgrate guide soon. diff --git a/flutter_quill_extensions/pubspec.yaml b/flutter_quill_extensions/pubspec.yaml index 82f93111..93f46784 100644 --- a/flutter_quill_extensions/pubspec.yaml +++ b/flutter_quill_extensions/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill_extensions description: Embed extensions for flutter_quill including image, video, formula and etc. -version: 0.6.0-dev.2 +version: 0.6.0-dev.3 homepage: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill