Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flutter_quill_extensions part 2 #1519

Merged
merged 4 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [8.4.1]
- Add `copyWith` in `OptionalSize` class

## [8.4.0]
- **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
- **Breaking change**: the `customButtons` in the `QuillToolbarConfigurations` is now of type `List<QuillToolbarCustomButtonOptions>`
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ dependencies:
git: https://github.com/singerdmx/flutter-quill.git
```


>
> Note: At this time, we are making too many changes to the library and you might see new version almost every day
>
> 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!
>
> Please use the latest pre-release of [FlutterQuill Extensions] in order to work with the latest stable version of [FlutterQuill]
> 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]
>

## Usage
Expand Down Expand Up @@ -297,7 +300,9 @@ Made with [contrib.rocks](https://contrib.rocks).

We welcome contributions!

Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./doc/CONTRIBUTING.md) for more details.
Please follow these guidelines when contributing to the project. See [CONTRIBUTING.md](./doc/CONTRIBUTING.md) for more details. <br>

You can check the [Todo](./doc/todo.md) list if you want to

[Quill]: https://quilljs.com/docs/formats
[Flutter]: https://github.com/flutter/flutter
Expand Down
2 changes: 2 additions & 0 deletions doc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
The contributions are more than welcome! <br>
This project will be better with the open-source community help

You can check the [Todo](./todo.md) list if you want to

There are no guidelines for now.
This page will be updated in the future.

Expand Down
11 changes: 11 additions & 0 deletions doc/todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Todo

This is a todo list page that added recently and will be updated soon.

## Flutter Quill
1. Improve the Raw Quill Editor
2. Provide more support to all the platforms

## Flutter Quill Extensions

1. Add support for cropping an image in `flutter_quill_extensions`
21 changes: 20 additions & 1 deletion example/assets/sample_data_testing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
[
{
"insert": "Here is an image: \n"
"insert": "Here is an local image: \n"
},
{
"insert": "\n"
},
{
"insert": {
"image": "assets/images/1.png"
},
"attributes": {
"width": "100",
"height": "100",
"style": "width:500px; height:350px;"
}
},
{
"insert": "\n"
},
{
"insert": "Here is an network image: \n"
},
{
"insert": "\n"
Expand Down
5 changes: 2 additions & 3 deletions example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,8 @@ class _HomePageState extends State<HomePage> {
),
embedBuilders: [
...FlutterQuillEmbeds.editorBuilders(
imageEmbedConfigurations: const QuillEditorImageEmbedConfigurations(
forceUseMobileOptionMenuForImageClick: true,
),
imageEmbedConfigurations:
const QuillEditorImageEmbedConfigurations(),
),
TimeStampEmbedBuilderWidget()
],
Expand Down
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ flutter:
uses-material-design: true
assets:
- assets/
- assets/images/

fonts:
- family: monospace
Expand Down
8 changes: 8 additions & 0 deletions flutter_quill_extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## 0.6.5
- Support the new improved platform checking of `flutter_quill`
- Update the Image embed builder logic
- Fix Save image button exception
- Feature: Image cropping for the image embed builder
- Add support for copying the image to the cliboard
- Fix the image size logic (it's still missing a lot of things but we will work on that soon)
- Fix the zoom image functionality to support different image providers
- Update `README.md`
- 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

## 0.6.4
- Update `QuillImageUtilities`
Expand Down
8 changes: 3 additions & 5 deletions flutter_quill_extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Currently the support for **Web** is limitied.
- [Usage](#usage)
- [Embed Blocks](#embed-blocks)
- [Custom Size Image for Mobile](#custom-size-image-for-mobile)
- [Custom Size Image for other platforms (excluding web)](#custom-size-image-for-other-platforms-excluding-web)
- [Custom Size Image for other platforms](#custom-size-image-for-other-platforms)
- [Drag and drop feature](#drag-and-drop-feature)
- [Features](#features)
- [Contributing](#contributing)
Expand Down Expand Up @@ -135,7 +135,7 @@ Define `mobileWidth`, `mobileHeight`, `mobileMargin`, `mobileAlignment` as follo
}
```

### Custom Size Image for other platforms (excluding web)
### Custom Size Image for other platforms

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

Expand All @@ -150,9 +150,7 @@ Define `width`, `height`, `margin`, `alignment` as follows:
}
```

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


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