Skip to content

Commit 67567ec

Browse files
committed
Merge branch 'master' into release
* master: (83 commits) Add copyWith methods to DefaultStyles, HorizontalSpacing, and VerticalSpacing (singerdmx#2550) docs: update migration guide to relfect singerdmx#2529 chore(release): prepare to publish 11.4.0 feat: allow to override link validation check, and accept mailto and other links by default (singerdmx#2525) chore(release): prepare to publish 11.3.0 Fix selection in readOnly mode, Add magnifier via RawMagnifier widget (singerdmx#2529) Clarify platform support of QuillEditorConfig.onKeyPressed (singerdmx#2542) chore(release): prepare to publish 11.2.0 feat: cache for toPlainText in Document to avoid unnecessary text computing (singerdmx#2482) chore(example): update deps chore(release): prepare to publish 11.1.2 fix: QuillEditor doesn't respect the system keyboard brightness by default on iOS (singerdmx#2522) chore(release): prepare to publish flutter_quill_test chore(release): prepare to publish 11.1.1 Chore: general improvements in flutter_quill_tests API (singerdmx#2512) Explicitly schedule frame on secondary click. (singerdmx#2507) chore(release): prepare to publish 11.1.0 fix: unpredictable endless loop of '_handleFocusChanged' in the phase of page route changing when editor is set to readonly. (singerdmx#2488) feat: Enable BoxDecoration for DefaultTextBlockStyle of header Attribute (singerdmx#2438) Expose Rule type so that Document.setCustomRules can be used (singerdmx#2484) ...
2 parents fa33385 + da4be28 commit 67567ec

File tree

172 files changed

+9164
-2594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+9164
-2594
lines changed

.github/ISSUE_TEMPLATE/1_bug.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
name: Report a bug
2-
description: |
3-
You found a bug in Flutter Quill causing your application to crash or
4-
throw an exception, a widget is buggy, unexpected behavior or something looks wrong.
2+
description: Report issues with Flutter Quill, including crashes, exceptions, buggy widgets, or unexpected behavior.
53
labels: 'bug'
64
body:
75
- type: markdown
86
attributes:
97
value: |
10-
Thank you for using Flutter Quill!
8+
Please provide the following details to help us address your issue effectively.
119
1210
- type: checkboxes
1311
attributes:
14-
label: Is there an existing issue for this?
12+
label: Have you checked for an existing issue?
13+
description: Ensure there isn’t already an open issue for this bug.
1514
options:
1615
- label: I have searched the [existing issues](https://github.com/singerdmx/flutter-quill/issues)
1716
required: true
1817
- type: input
1918
attributes:
20-
label: Flutter Quill version
21-
description: The version of the project for the packages (e.g., `flutter_quill` and `flutter_quill_extensions`)
22-
placeholder: (e.g., 10.0.0)
19+
label: Flutter Quill Version
20+
description: The package version that's used in pubspec.lock
21+
placeholder: e.g., 11.0.0
2322
validations:
24-
required: false
23+
required: true
2524
- type: textarea
2625
attributes:
27-
label: Steps to reproduce
28-
description: Please tell us exactly how to reproduce the problem you are running into.
26+
label: Steps to Reproduce
27+
description: Provide a clear step-by-step guide to reproduce the issue.
2928
placeholder: |
3029
1. ...
3130
2. ...
@@ -35,20 +34,22 @@ body:
3534
- type: textarea
3635
attributes:
3736
label: Expected results
38-
description: Please tell us what is expected to happen.
37+
description: Describe what you expected to happen.
3938
validations:
4039
required: true
4140
- type: textarea
4241
attributes:
4342
label: Actual results
44-
description: Please tell us what is actually happening.
43+
description: Describe what is happening instead of the expected behavior.
4544
validations:
4645
required: true
4746
- type: textarea
4847
attributes:
4948
label: Additional Context
5049
description: |
51-
Include additional information such as Screenshots or Logs if needed.
50+
Add any extra information such as screenshots, videos, or logs to help diagnose the issue.
51+
52+
Consider sharing the `pubspec.lock` file of the project if relevant.
5253
5354
If the logs are too large to be uploaded to GitHub, you may upload
5455
them as a `txt` file or use online tools like https://pastebin.com to
@@ -57,17 +58,16 @@ body:
5758
<details>
5859
<summary>Screenshots / Video demonstration</summary>
5960
60-
[Upload media here]
61+
[Attach media here]
6162
6263
</details>
6364
64-
6565
<details><summary>Logs</summary>
6666
6767
```console
68-
[Paste your logs here]
68+
[Paste logs here]
6969
```
7070
7171
</details>
7272
validations:
73-
required: false
73+
required: false
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
11
name: Feature request
2-
description: Suggest a new idea for Flutter Quill.
2+
description: Propose a new idea or enhancement for Flutter Quill.
33
labels: 'enhancement'
44
body:
55
- type: markdown
66
attributes:
77
value: |
8-
Thank you for using Flutter Quill!
8+
Please provide the following details to help us evaluate your feature request.
99
1010
- type: checkboxes
1111
attributes:
12-
label: Is there an existing issue for this?
13-
description: Please search to see if an issue already exists for this feature request or proposal.
12+
label: Have you checked for an existing issue?
13+
description: Ensure there isn’t already an open issue for this feature request.
1414
options:
1515
- label: I have searched the [existing issues](https://github.com/singerdmx/flutter-quill/issues)
1616
required: true
1717
- type: textarea
1818
attributes:
1919
label: Use case
2020
description: |
21-
Please tell us the problem you are running into that led to you wanting
22-
a new feature.
23-
24-
Is your feature request related to a problem? Please give a clear and
25-
concise description of what the problem is.
26-
27-
Describe the alternative solutions you've considered. Is there already a solution that solves this?
21+
Describe the problem or challenge that led to this feature request.
22+
Include any alternative solutions you’ve considered and why they don’t work.
2823
validations:
2924
required: true
3025
- type: textarea
3126
attributes:
3227
label: Proposal
3328
description: |
34-
Briefly but precisely describe what you would like Flutter Quill to be able to do.
29+
Describe your proposed solution and what you’d like Flutter Quill to do.
3530
36-
Consider attaching something showing what you are imagining:
37-
* images
38-
* videos
39-
* code samples
31+
You can include additional resources such as:
32+
- Images
33+
- Videos
34+
- Code samples
4035
validations:
4136
required: true

.github/ISSUE_TEMPLATE/3_question.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
blank_issues_enabled: true
2+
contact_links:
3+
- name: Community Support
4+
url: https://github.com/singerdmx/flutter-quill/discussions/new?category=q-a
5+
about: Ask a question about using the package.

.github/workflows/build.yml

Lines changed: 83 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,107 @@
1-
# TODO: Update the workflow to build on Android, iOS, desktop (macOS and Windows) instead of just Linux and Web
2-
3-
name: 🏗️ Build the example
1+
name: Build the example
42

53
on:
64
pull_request:
75
branches: [master, dev]
86

97
jobs:
10-
build_linux:
11-
name: 🐧 Build Linux and Web Apps
8+
# Build the Linux, Android and web apps on Linux
9+
linux-web-android:
10+
name: Linux, Android and Web Apps
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- name: 📦 Checkout repository
16-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
channel: stable
20+
cache: true
21+
22+
- name: Verify Flutter installation
23+
run: flutter --version
24+
25+
- name: Install flutter_quill dependencies
26+
run: flutter pub get
27+
28+
- name: Install example dependencies
29+
run: flutter pub get -C example
30+
31+
- name: Build the Web app
32+
run: flutter build web --release --dart-define=CI=true
33+
working-directory: ./example
34+
35+
- name: Build the Web app with WebAssembly
36+
run: flutter build web --release --wasm --dart-define=CI=true
37+
working-directory: ./example
38+
39+
- name: Install Linux dependencies
40+
run: |
41+
sudo apt-get update -y
42+
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
43+
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
44+
45+
- name: Build the Linux app
46+
run: flutter build linux --release --dart-define=CI=true
47+
working-directory: ./example
48+
49+
- name: Build the Android app
50+
run: flutter build appbundle --release --dart-define=CI=true
51+
working-directory: ./example
52+
53+
macos:
54+
name: iOS and macOS apps
55+
runs-on: macos-latest
56+
57+
steps:
58+
- uses: actions/checkout@v4
1759

18-
- name: 🛠️ Set up Flutter
60+
- name: Set up Flutter
1961
uses: subosito/flutter-action@v2
2062
with:
21-
channel: 'stable'
63+
channel: stable
2264
cache: true
2365

24-
- name: 🔍 Verify Flutter installation
66+
- name: Verify Flutter installation
2567
run: flutter --version
2668

27-
- name: 📥 Install Flutter dependencies
69+
- name: Install flutter_quill dependencies
2870
run: flutter pub get
2971

30-
- name: 🌐 Build Flutter Web Application
31-
run: flutter build web --release --verbose --dart-define=CI=true
72+
- name: Install example dependencies
73+
run: flutter pub get -C example
74+
75+
- name: Build the iOS app
76+
run: flutter build ios --no-codesign --release --dart-define=CI=true
77+
working-directory: ./example
78+
79+
- name: Build the macOS app
80+
run: flutter build macos --release --dart-define=CI=true
3281
working-directory: ./example
3382

34-
# TODO: Update the CI to not upgrade all the packages to save some time
35-
- name: 🔄 Update and Upgrade APT Packages
36-
run: sudo apt update -y && sudo apt upgrade -y
83+
windows:
84+
name: Windows app
85+
runs-on: windows-latest
3786

38-
- name: 🛠️ Install Flutter Linux Prerequisites
39-
run: sudo apt install -y curl git unzip xz-utils zip libglu1-mesa
87+
steps:
88+
- uses: actions/checkout@v4
89+
90+
- name: Set up Flutter
91+
uses: subosito/flutter-action@v2
92+
with:
93+
channel: stable
94+
cache: true
95+
96+
- name: Verify Flutter installation
97+
run: flutter --version
98+
99+
- name: Install flutter_quill dependencies
100+
run: flutter pub get
40101

41-
- name: 🧩 Install Flutter Linux Desktop Dependencies
42-
run: sudo apt install -y clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
102+
- name: Install example dependencies
103+
run: flutter pub get -C example
43104

44-
- name: 🐧 Build Flutter Linux Desktop Application
45-
run: flutter build linux --release --verbose --dart-define=CI=true
105+
- name: Build the Windows app
106+
run: flutter build windows --release --dart-define=CI=true
46107
working-directory: ./example

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 📝 Changelog File Check
1+
name: Changelog File Check
22

33
# This workflow only validates if the CHANGELOG.md file was updated and doesn't validate the format.
44

@@ -10,10 +10,10 @@ on:
1010

1111
jobs:
1212
changelog:
13-
name: 🔍 Verify Changelog Modification
13+
name: Verify Changelog Modification
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Check if CHANGELOG.md was modified
16+
- name: Check if CHANGELOG.md was modified
1717
uses: tarides/changelog-check-action@v2
1818
with:
1919
changelog: CHANGELOG.md

.github/workflows/checks.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Code Quality Checks
2+
3+
on:
4+
push:
5+
branches: [master, dev]
6+
pull_request:
7+
branches: [master, dev]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
channel: stable
20+
cache: true
21+
22+
- name: Verify Flutter installation
23+
run: flutter --version
24+
25+
- name: Install Flutter dependencies
26+
run: flutter pub get
27+
28+
- name: Install flutter_quill_extensions dependencies
29+
run: flutter pub get -C flutter_quill_extensions
30+
31+
- name: Install flutter_quill_test dependencies
32+
run: flutter pub get -C flutter_quill_test
33+
34+
- name: Perform Flutter Analysis
35+
run: flutter analyze
36+
37+
# TODO: Restore Dart formatting check, disabled due to an issue https://github.com/singerdmx/flutter-quill/actions/runs/13355109619/job/37296760819.
38+
# - name: Check Dart code formatting
39+
# run: dart format --set-exit-if-changed .
40+
41+
- name: Preview Dart proposed changes
42+
run: dart fix --dry-run
43+
44+
# TODO: Restore Dart formatting check, disabled due to an issue https://github.com/singerdmx/flutter-quill/actions/runs/13355109619/job/37296760819.
45+
# - name: Check if the flutter_quill package is ready for publishing
46+
# run: flutter pub publish --dry-run
47+
48+
# # TODO: Restore Dart formatting check, disabled due to an issue https://github.com/singerdmx/flutter-quill/actions/runs/13355109619/job/37296760819.
49+
# - name: Check if the flutter_quill_extensions is ready for publishing
50+
# run: flutter pub publish --dry-run -C flutter_quill_extensions
51+
52+
- name: Check the translations
53+
run: dart ./scripts/translations_check.dart
54+
55+
- name: Install cider
56+
run: dart pub global activate cider
57+
58+
# TODO: Need a more strict way to validate the format that uses https://keepachangelog.com/en/1.1.0/
59+
- name: Validate CHANGELOG.md format
60+
run: $HOME/.pub-cache/bin/cider list CHANGELOG.md

0 commit comments

Comments
 (0)