From 3a82930bbe2105838e1b49b7ba83820205a6561b Mon Sep 17 00:00:00 2001 From: Ahmed Hnewa <73608287+freshtechtips@users.noreply.github.com> Date: Sat, 21 Oct 2023 19:51:13 +0300 Subject: [PATCH] Major update 2 (#1446) --- .github/PULL_REQUEST_TEMPLATE.md | 1 + CHANGELOG.md | 4 + before-push.sh | 23 ++ example/lib/pages/home_page.dart | 19 +- example/lib/pages/read_only_page.dart | 20 +- example/lib/widgets/demo_scaffold.dart | 2 +- .../lib/widgets/time_stamp_embed_widget.dart | 2 +- .../lib/embeds/widgets/video_app.dart | 17 +- flutter_quill_extensions/pubspec.yaml | 2 +- lib/extensions.dart | 2 +- lib/flutter_quill.dart | 2 +- .../models/config/editor/configurations.dart | 21 ++ .../config}/quill_configurations.dart | 35 +-- .../models/config/shared_configurations.dart | 21 ++ .../models/config/toolbar/buttons/base.dart | 48 +++ .../config/toolbar/buttons/font_family.dart | 79 +++++ .../config/toolbar/buttons/history.dart | 39 +++ .../config/toolbar/buttons/toggle_style.dart | 15 + .../models/config/toolbar/configurations.dart | 93 ++++++ lib/src/models/documents/nodes/leaf.dart | 3 - lib/src/utils/extensions/build_context.dart | 84 +++++- .../utils/extensions/quill_controller.dart | 17 ++ lib/src/utils/platform.dart | 7 + lib/src/widgets/editor.dart | 32 +- lib/src/widgets/raw_editor/raw_editor.dart | 5 +- lib/src/widgets/toolbar.dart | 169 +++++------ .../arrow_indicated_list.dart} | 0 .../clear_format.dart} | 8 +- .../{color_button.dart => buttons/color.dart} | 14 +- .../toolbar/{ => buttons}/custom_button.dart | 4 +- .../widgets/toolbar/buttons/font_family.dart | 276 ++++++++++++++++++ lib/src/widgets/toolbar/buttons/history.dart | 143 +++++++++ .../indent.dart} | 6 +- .../link_style.dart} | 18 +- .../link_style2.dart} | 16 +- .../quill_font_size.dart} | 14 +- .../quill_icon.dart} | 2 +- .../search.dart} | 10 +- .../select_alignment.dart} | 14 +- .../select_header_style.dart} | 12 +- .../toggle_check_list.dart} | 12 +- .../toggle_style.dart} | 12 +- lib/src/widgets/toolbar/enum.dart | 2 + lib/src/widgets/toolbar/history_button.dart | 89 ------ .../toolbar/quill_font_family_button.dart | 238 --------------- lib/src/widgets/utils/provider.dart | 17 +- pubspec.yaml | 2 +- test/bug_fix_test.dart | 2 +- test/widgets/editor_test.dart | 20 +- 49 files changed, 1104 insertions(+), 589 deletions(-) create mode 100755 before-push.sh create mode 100644 lib/src/models/config/editor/configurations.dart rename lib/src/{core => models/config}/quill_configurations.dart (52%) create mode 100644 lib/src/models/config/shared_configurations.dart create mode 100644 lib/src/models/config/toolbar/buttons/base.dart create mode 100644 lib/src/models/config/toolbar/buttons/font_family.dart create mode 100644 lib/src/models/config/toolbar/buttons/history.dart create mode 100644 lib/src/models/config/toolbar/buttons/toggle_style.dart create mode 100644 lib/src/models/config/toolbar/configurations.dart create mode 100644 lib/src/utils/extensions/quill_controller.dart rename lib/src/widgets/toolbar/{arrow_indicated_button_list.dart => buttons/arrow_indicated_list.dart} (100%) rename lib/src/widgets/toolbar/{clear_format_button.dart => buttons/clear_format.dart} (90%) rename lib/src/widgets/toolbar/{color_button.dart => buttons/color.dart} (97%) rename lib/src/widgets/toolbar/{ => buttons}/custom_button.dart (93%) create mode 100644 lib/src/widgets/toolbar/buttons/font_family.dart create mode 100644 lib/src/widgets/toolbar/buttons/history.dart rename lib/src/widgets/toolbar/{indent_button.dart => buttons/indent.dart} (92%) rename lib/src/widgets/toolbar/{link_style_button.dart => buttons/link_style.dart} (95%) rename lib/src/widgets/toolbar/{link_style_button2.dart => buttons/link_style2.dart} (97%) rename lib/src/widgets/toolbar/{quill_font_size_button.dart => buttons/quill_font_size.dart} (95%) rename lib/src/widgets/toolbar/{quill_icon_button.dart => buttons/quill_icon.dart} (97%) rename lib/src/widgets/toolbar/{search_button.dart => buttons/search.dart} (89%) rename lib/src/widgets/toolbar/{select_alignment_button.dart => buttons/select_alignment.dart} (96%) rename lib/src/widgets/toolbar/{select_header_style_button.dart => buttons/select_header_style.dart} (95%) rename lib/src/widgets/toolbar/{toggle_check_list_button.dart => buttons/toggle_check_list.dart} (92%) rename lib/src/widgets/toolbar/{toggle_style_button.dart => buttons/toggle_style.dart} (94%) delete mode 100644 lib/src/widgets/toolbar/history_button.dart delete mode 100644 lib/src/widgets/toolbar/quill_font_family_button.dart diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d365462e..905e0064 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -43,3 +43,4 @@ Closes #IssueNumber - [ ] I have run `dart format .`` on the project - [ ] I have run `dart fix --apply` on the project - [ ] I have run `flutter test` and `flutter analyze` and it passed successfully +- [ ] I have run `./before-push.sh` and everything is fine