diff --git a/CHANGELOG.md b/CHANGELOG.md index 776e4abe..8ea1939b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ -## [8.4.5] +## [8.5.0] - Migrate to `flutter_localizations` for the translations - Translate some of the untranslated localizations - Add default Chinese fallback translation +- Remove unused parameters `items` in `QuillToolbarFontFamilyButtonOptions` and `QuillToolbarFontSizeButtonOptions` +- Update documentation ## [8.4.4] - Update `.pubignore` to ignore unnecessary files and folders diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index b3a51e4b..f19febf3 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -59,3 +59,6 @@ git push origin your-branch-name ``` Thank you for your time and efforts in this open-source community project!! + +## Development Notes +- When update the translations or localizations in the app, please take a look at the [translation](./translation.md) page as it have important notes in order to work \ No newline at end of file diff --git a/doc/translation.md b/doc/translation.md index 48f235f0..23650596 100644 --- a/doc/translation.md +++ b/doc/translation.md @@ -38,4 +38,13 @@ Currently, translations are available for these 31 locales: #### Contributing to translations -The translation file is located at [toolbar.i18n.dart](lib/src/translations/toolbar.i18n.dart). Feel free to contribute your own translations, just copy the English translations map and replace the values with your translations. Then open a pull request so everyone can benefit from your translations! \ No newline at end of file +The translation files is located at [l10n folder](../lib/src/l10n/). Feel free to contribute your own translations, just copy the [English translations](../lib/src/l10n/quill_en.arb) map and replace the values with your translations. + +Run the following script in the root folder: +``` +./scripts/renegerate-translations.sh +``` + +This will generate the new dart files from the arb files in order to take affect, otherwise you won't notice a difference + + Then open a pull request so everyone can benefit from your translations! \ No newline at end of file diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 5f959913..ccdf1958 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -40,7 +40,6 @@ dev_dependencies: flutter: uses-material-design: true - generate: true assets: - assets/ - assets/images/ diff --git a/lib/src/models/config/toolbar/buttons/font_family.dart b/lib/src/models/config/toolbar/buttons/font_family.dart index 17d75c9c..41319bbb 100644 --- a/lib/src/models/config/toolbar/buttons/font_family.dart +++ b/lib/src/models/config/toolbar/buttons/font_family.dart @@ -50,7 +50,6 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< this.itemPadding, this.defaultItemColor = Colors.red, this.renderFontFamilies = true, - @Deprecated('It is not required because of `rawItemsMap`') this.items, this.highlightElevation = 1, this.hoverElevation = 1, this.fillColor, @@ -61,8 +60,6 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< final Color? fillColor; final double hoverElevation; final double highlightElevation; - @Deprecated('It is not required because of `rawItemsMap`') - final List>? items; /// By default it will be [fontFamilyValues] from [QuillToolbarConfigurations] /// You can override this if you want @@ -137,8 +134,6 @@ class QuillToolbarFontFamilyButtonOptions extends QuillToolbarBaseButtonOptions< fillColor: fillColor ?? this.fillColor, hoverElevation: hoverElevation ?? this.hoverElevation, highlightElevation: highlightElevation ?? this.highlightElevation, - // ignore: deprecated_member_use_from_same_package - items: items ?? this.items, ); } } diff --git a/lib/src/models/config/toolbar/buttons/font_size.dart b/lib/src/models/config/toolbar/buttons/font_size.dart index 651ad350..45464ecf 100644 --- a/lib/src/models/config/toolbar/buttons/font_size.dart +++ b/lib/src/models/config/toolbar/buttons/font_size.dart @@ -34,7 +34,6 @@ class QuillToolbarFontSizeButtonOptions extends QuillToolbarBaseButtonOptions< this.fillColor, this.hoverElevation = 1, this.highlightElevation = 1, - this.items, this.rawItemsMap, this.onSelected, super.iconTheme, @@ -58,8 +57,6 @@ class QuillToolbarFontSizeButtonOptions extends QuillToolbarBaseButtonOptions< final Color? fillColor; final double hoverElevation; final double highlightElevation; - @Deprecated('It is not required because of `rawItemsMap`') - final List>? items; /// By default it will be [fontSizesValues] from [QuillToolbarConfigurations] /// You can override this if you want @@ -104,8 +101,6 @@ class QuillToolbarFontSizeButtonOptions extends QuillToolbarBaseButtonOptions< fillColor: fillColor ?? this.fillColor, hoverElevation: hoverElevation ?? this.hoverElevation, highlightElevation: highlightElevation ?? this.highlightElevation, - // ignore: deprecated_member_use_from_same_package - items: items ?? this.items, rawItemsMap: rawItemsMap ?? this.rawItemsMap, onSelected: onSelected ?? this.onSelected, attribute: attribute ?? this.attribute, diff --git a/lib/src/models/rules/insert.dart b/lib/src/models/rules/insert.dart index b4331d8f..9b3d1688 100644 --- a/lib/src/models/rules/insert.dart +++ b/lib/src/models/rules/insert.dart @@ -375,9 +375,6 @@ class AutoFormatMultipleLinksRule extends InsertRule { _detectLinkPattern, caseSensitive: false, ); - // @Deprecated( - // 'Please use [linkRegExp1] or [linkRegExp2]', - // ) static final linkRegExp = oneLineLinkRegExp; @override diff --git a/pubspec.yaml b/pubspec.yaml index e9afc566..98e6d4ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter. -version: 8.4.3 +version: 8.5.0 homepage: https://1o24bbs.com/c/bulletjournal/108 repository: https://github.com/singerdmx/flutter-quill