Skip to content

Commit c769b14

Browse files
author
Ellet
authored
Update flutter_quill_extensions part 2 (#1519)
* Update flutter_quill_extensions part 2
1 parent ebd2729 commit c769b14

File tree

22 files changed

+586
-380
lines changed

22 files changed

+586
-380
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [8.4.1]
2+
- Add `copyWith` in `OptionalSize` class
3+
14
## [8.4.0]
25
- **Breaking change**: Update the `QuillCustomButton` to have `QuillCustomButtonOptions`. We moved everything that is in the `QuillCustomButton` to `QuillCustomButtonOptions` but replaced the `iconData` with `icon` widget for more customizations
36
- **Breaking change**: the `customButtons` in the `QuillToolbarConfigurations` is now of type `List<QuillToolbarCustomButtonOptions>`

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ dependencies:
6666
git: https://github.com/singerdmx/flutter-quill.git
6767
```
6868
69+
70+
>
71+
> Note: At this time, we are making too many changes to the library and you might see new version almost every day
6972
>
7073
> Using the latest version and reporting any issues you encounter on GitHub will greatly contribute to the improvement of the library. Your input and insights are valuable in shaping a stable and reliable version for all our users. Thank you for being part of the open-source community!
7174
>
72-
> Please use the latest pre-release of [FlutterQuill Extensions] in order to work with the latest stable version of [FlutterQuill]
75+
> If the latest version of [FlutterQuill Extensions] is pre-release, then please use it in order to work with the latest stable version of [FlutterQuill]
7376
>
7477
7578
## Usage
@@ -297,7 +300,9 @@ Made with [contrib.rocks](https://contrib.rocks).
297300

298301
We welcome contributions!
299302

300-
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./doc/CONTRIBUTING.md) for more details.
303+
Please follow these guidelines when contributing to the project. See [CONTRIBUTING.md](./doc/CONTRIBUTING.md) for more details. <br>
304+
305+
You can check the [Todo](./doc/todo.md) list if you want to
301306

302307
[Quill]: https://quilljs.com/docs/formats
303308
[Flutter]: https://github.com/flutter/flutter

doc/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The contributions are more than welcome! <br>
44
This project will be better with the open-source community help
55

6+
You can check the [Todo](./todo.md) list if you want to
7+
68
There are no guidelines for now.
79
This page will be updated in the future.
810

doc/todo.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Todo
2+
3+
This is a todo list page that added recently and will be updated soon.
4+
5+
## Table of contents
6+
- [Todo](#todo)
7+
- [Table of contents](#table-of-contents)
8+
- [Flutter Quill](#flutter-quill)
9+
- [Features](#features)
10+
- [Improvemenets](#improvemenets)
11+
- [Bugs](#bugs)
12+
- [Flutter Quill Extensions](#flutter-quill-extensions)
13+
- [Features](#features-1)
14+
- [Improvemenets](#improvemenets-1)
15+
- [Bugs](#bugs-1)
16+
17+
## Flutter Quill
18+
19+
### Features
20+
21+
1. Add a method to set TextInputAction, fore more [info](https://github.com/singerdmx/flutter-quill/issues/1328)
22+
2. Add support for Text magnification feature, for more [info](https://github.com/singerdmx/flutter-quill/issues/1504)
23+
3. Provide a way to expose quills undo redo stacks, for more [info](https://github.com/singerdmx/flutter-quill/issues/1381)
24+
25+
### Improvemenets
26+
27+
1. Improve the Raw Quill Editor, for more [info](https://github.com/singerdmx/flutter-quill/issues/1509)
28+
2. Provide more support to all the platforms
29+
30+
### Bugs
31+
32+
Empty for now.
33+
Please go to the [issues](https://github.com/singerdmx/flutter-quill/issues)
34+
35+
36+
## Flutter Quill Extensions
37+
38+
### Features
39+
1. Add support for cropping an image, fore more [info](https://github.com/singerdmx/flutter-quill/issues/1494)
40+
2. Add support for copying images to the Clipboard
41+
42+
### Improvemenets
43+
44+
Please check the todos, this list will be updated soon.
45+
46+
### Bugs
47+
48+
Please check the todos, this list will be updated soon.

example/assets/sample_data_testing.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
[
22
{
3-
"insert": "Here is an image: \n"
3+
"insert": "This is an asset image: \n"
4+
},
5+
{
6+
"insert": "\n"
7+
},
8+
{
9+
"insert": {
10+
"image": "assets/images/1.png"
11+
},
12+
"attributes": {
13+
"width": "100",
14+
"height": "100",
15+
"style": "width:500px; height:350px;"
16+
}
17+
},
18+
{
19+
"insert": "\n"
20+
},
21+
{
22+
"insert": "Here is a network image: \n"
423
},
524
{
625
"insert": "\n"

example/lib/pages/home_page.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class _HomePageState extends State<HomePage> {
397397
sizeSmall: TextStyle(fontSize: 9),
398398
),
399399
embedBuilders: [
400-
...FlutterQuillEmbeds.editorsWebBuilders(),
400+
...FlutterQuillEmbeds.editorWebBuilders(),
401401
TimeStampEmbedBuilderWidget()
402402
],
403403
),
@@ -444,9 +444,8 @@ class _HomePageState extends State<HomePage> {
444444
),
445445
embedBuilders: [
446446
...FlutterQuillEmbeds.editorBuilders(
447-
imageEmbedConfigurations: const QuillEditorImageEmbedConfigurations(
448-
forceUseMobileOptionMenuForImageClick: true,
449-
),
447+
imageEmbedConfigurations:
448+
const QuillEditorImageEmbedConfigurations(),
450449
),
451450
TimeStampEmbedBuilderWidget()
452451
],

example/lib/pages/read_only_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class _ReadOnlyPageState extends State<ReadOnlyPage> {
4242
expands: false,
4343
padding: EdgeInsets.zero,
4444
embedBuilders: kIsWeb
45-
? FlutterQuillEmbeds.editorsWebBuilders()
45+
? FlutterQuillEmbeds.editorWebBuilders()
4646
: FlutterQuillEmbeds.editorBuilders(),
4747
scrollable: true,
4848
autoFocus: true,
@@ -57,7 +57,7 @@ class _ReadOnlyPageState extends State<ReadOnlyPage> {
5757
autoFocus: true,
5858
expands: false,
5959
padding: EdgeInsets.zero,
60-
embedBuilders: FlutterQuillEmbeds.editorsWebBuilders(),
60+
embedBuilders: FlutterQuillEmbeds.editorWebBuilders(),
6161
scrollable: true,
6262
),
6363
scrollController: ScrollController(),

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ flutter:
4141
uses-material-design: true
4242
assets:
4343
- assets/
44+
- assets/images/
4445

4546
fonts:
4647
- family: monospace

flutter_quill_extensions/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## 0.6.5
22
- Support the new improved platform checking of `flutter_quill`
3+
- Update the Image embed builder logic
4+
- Fix Save image button exception
5+
- Feature: Image cropping for the image embed builder
6+
- Add support for copying the image to the cliboard
7+
- Add new static method in `FlutterQuillEmbeds` which is `defaultEditorBuilders` for minimal configurations
8+
- Fix the image size logic (it's still missing a lot of things but we will work on that soon)
9+
- Fix the zoom image functionality to support different image providers
10+
- Fix typo in the function name `editorsWebBuilders`, now it's called `editorWebBuilders`
11+
- Deprecated: The boolean property `forceUseMobileOptionMenuForImageClick` is now deprecated as we will not using it anymore and it will be removed in the next major release
12+
- Update `README.md`
313

414
## 0.6.4
515
- Update `QuillImageUtilities`

flutter_quill_extensions/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Currently the support for **Web** is limitied.
1717
- [Usage](#usage)
1818
- [Embed Blocks](#embed-blocks)
1919
- [Custom Size Image for Mobile](#custom-size-image-for-mobile)
20-
- [Custom Size Image for other platforms (excluding web)](#custom-size-image-for-other-platforms-excluding-web)
20+
- [Custom Size Image for other platforms](#custom-size-image-for-other-platforms)
2121
- [Drag and drop feature](#drag-and-drop-feature)
2222
- [Features](#features)
2323
- [Contributing](#contributing)
@@ -135,7 +135,7 @@ Define `mobileWidth`, `mobileHeight`, `mobileMargin`, `mobileAlignment` as follo
135135
}
136136
```
137137

138-
### Custom Size Image for other platforms (excluding web)
138+
### Custom Size Image for other platforms
139139

140140
Define `width`, `height`, `margin`, `alignment` as follows:
141141

@@ -150,9 +150,7 @@ Define `width`, `height`, `margin`, `alignment` as follows:
150150
}
151151
```
152152

153-
On mobile we will use `mobileWidth`, `mobileHeight`, on desktop will use `width`, `heigth`
154-
on Web we will use the `width` and the `height` but the ones in the `attributes`
155-
This may not clear but don't worry we will update it soon.
153+
156154

157155
### Drag and drop feature
158156
Currently the drag and drop feature is not offically supported but you can achieve this very easily in the following steps:

0 commit comments

Comments
 (0)