diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/dart_quill_delta/CHANGELOG.md b/dart_quill_delta/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/dart_quill_delta/CHANGELOG.md +++ b/dart_quill_delta/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/dart_quill_delta/pubspec.yaml b/dart_quill_delta/pubspec.yaml index 7591f8ef..90c1ab71 100644 --- a/dart_quill_delta/pubspec.yaml +++ b/dart_quill_delta/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_quill_delta description: A port of quill-js-delta from typescript to dart -version: 9.3.5 +version: 9.3.7 homepage: https://github.com/singerdmx/flutter-quill/tree/master/dart_quill_delta/ repository: https://github.com/singerdmx/flutter-quill/tree/master/dart_quill_delta/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/doc/translation.md b/doc/translation.md index 73613259..5aa0ab52 100644 --- a/doc/translation.md +++ b/doc/translation.md @@ -23,7 +23,7 @@ Expanded( ) ``` -Currently, translations are available for these 35 locales: +Currently, translations are available for these 36 locales: * `Locale('en')`, `Locale('ar')`, `Locale('bn')`, `Locale('bs')` * `Locale('cs')`, `Locale('de')`, `Locale('da')`, `Locale('fr')` @@ -33,7 +33,7 @@ Currently, translations are available for these 35 locales: * `Locale('uk')`, `Locale('ur')`, `Locale('pt')`, `Locale('pl')` * `Locale('vi')`, `Locale('id')`, `Locale('it')`, `Locale('ms')` * `Locale('nl')`, `Locale('no')`, `Locale('fa')`, `Locale('hi')` -* `Locale('sr')`, `Locale('sv')`, `Locale('sw')`, `Locale('ja')` +* `Locale('sk')`, `Locale('sr')`, `Locale('sv')`, `Locale('sw')`, `Locale('ja')` #### Contributing to translations diff --git a/flutter_quill_extensions/CHANGELOG.md b/flutter_quill_extensions/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/flutter_quill_extensions/CHANGELOG.md +++ b/flutter_quill_extensions/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/flutter_quill_extensions/pubspec.yaml b/flutter_quill_extensions/pubspec.yaml index 427c9aa0..84a98509 100644 --- a/flutter_quill_extensions/pubspec.yaml +++ b/flutter_quill_extensions/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill_extensions description: Embed extensions for flutter_quill including image, video, formula and etc. -version: 9.3.5 +version: 9.3.7 homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/ repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/flutter_quill_test/CHANGELOG.md b/flutter_quill_test/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/flutter_quill_test/CHANGELOG.md +++ b/flutter_quill_test/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/flutter_quill_test/pubspec.yaml b/flutter_quill_test/pubspec.yaml index bc602ad4..51732007 100644 --- a/flutter_quill_test/pubspec.yaml +++ b/flutter_quill_test/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill_test description: Test utilities for flutter_quill which includes methods to simplify interacting with the editor in test cases. -version: 9.3.5 +version: 9.3.7 homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/ repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/lib/src/l10n/generated/quill_localizations.dart b/lib/src/l10n/generated/quill_localizations.dart index f4213bf7..08cf5bce 100644 --- a/lib/src/l10n/generated/quill_localizations.dart +++ b/lib/src/l10n/generated/quill_localizations.dart @@ -29,6 +29,7 @@ import 'quill_localizations_pl.dart'; import 'quill_localizations_pt.dart'; import 'quill_localizations_ro.dart'; import 'quill_localizations_ru.dart'; +import 'quill_localizations_sk.dart'; import 'quill_localizations_sr.dart'; import 'quill_localizations_sv.dart'; import 'quill_localizations_sw.dart'; @@ -152,6 +153,7 @@ abstract class FlutterQuillLocalizations { Locale('ro'), Locale('ro', 'RO'), Locale('ru'), + Locale('sk'), Locale('sr'), Locale('sv'), Locale('sw'), @@ -730,6 +732,7 @@ class _FlutterQuillLocalizationsDelegate 'pt', 'ro', 'ru', + 'sk', 'sr', 'sv', 'sw', @@ -842,6 +845,8 @@ FlutterQuillLocalizations lookupFlutterQuillLocalizations(Locale locale) { return FlutterQuillLocalizationsRo(); case 'ru': return FlutterQuillLocalizationsRu(); + case 'sk': + return FlutterQuillLocalizationsSk(); case 'sr': return FlutterQuillLocalizationsSr(); case 'sv': diff --git a/lib/src/l10n/generated/quill_localizations_cs.dart b/lib/src/l10n/generated/quill_localizations_cs.dart index 79d15209..40291575 100644 --- a/lib/src/l10n/generated/quill_localizations_cs.dart +++ b/lib/src/l10n/generated/quill_localizations_cs.dart @@ -137,25 +137,25 @@ class FlutterQuillLocalizationsCs extends FlutterQuillLocalizations { String get headerStyle => 'Styl záhlaví'; @override - String get normal => 'Normal'; + String get normal => 'Normální text'; @override - String get heading1 => 'Heading 1'; + String get heading1 => 'Nadpis 1'; @override - String get heading2 => 'Heading 2'; + String get heading2 => 'Nadpis 2'; @override - String get heading3 => 'Heading 3'; + String get heading3 => 'Nadpis 3'; @override - String get heading4 => 'Heading 4'; + String get heading4 => 'Nadpis 4'; @override - String get heading5 => 'Heading 5'; + String get heading5 => 'Nadpis 5'; @override - String get heading6 => 'Heading 6'; + String get heading6 => 'Nadpis 6'; @override String get numberedList => 'Číslovaný seznam'; @@ -222,7 +222,7 @@ class FlutterQuillLocalizationsCs extends FlutterQuillLocalizations { @override String theImageHasBeenSavedAt(String imagePath) { - return 'The image has been saved at: $imagePath'; + return 'Obrázek byl uložen v: $imagePath'; } @override @@ -256,20 +256,20 @@ class FlutterQuillLocalizationsCs extends FlutterQuillLocalizations { String get insertImage => 'Vložit obrázek'; @override - String get pickAPhotoFromYourGallery => 'Pick a photo from your gallery'; + String get pickAPhotoFromYourGallery => 'Vybrat fotku z galerie'; @override - String get takeAPhotoUsingYourCamera => 'Take a photo using your camera'; + String get takeAPhotoUsingYourCamera => 'Použít fotoaparát'; @override - String get pasteAPhotoUsingALink => 'Paste a photo using a link'; + String get pasteAPhotoUsingALink => 'Vložit fotografii pomocí odkazu'; @override - String get pickAVideoFromYourGallery => 'Pick a video from your gallery'; + String get pickAVideoFromYourGallery => 'Vyberte video z galerie'; @override - String get recordAVideoUsingYourCamera => 'Record a video using your camera'; + String get recordAVideoUsingYourCamera => 'Natočit video pomocí kamery'; @override - String get pasteAVideoUsingALink => 'Paste a video using a link'; + String get pasteAVideoUsingALink => 'Vložit video pomocí odkazu'; } diff --git a/lib/src/l10n/generated/quill_localizations_sk.dart b/lib/src/l10n/generated/quill_localizations_sk.dart new file mode 100644 index 00000000..6be2a6c9 --- /dev/null +++ b/lib/src/l10n/generated/quill_localizations_sk.dart @@ -0,0 +1,279 @@ +import 'quill_localizations.dart'; + +/// The translations for Slovak (`sk`). +class FlutterQuillLocalizationsSk extends FlutterQuillLocalizations { + FlutterQuillLocalizationsSk([super.locale = 'sk']); + + @override + String get pasteLink => 'Vložiť odkaz'; + + @override + String get ok => 'Ok'; + + @override + String get selectColor => 'Vybrať farbu'; + + @override + String get gallery => 'Galéria'; + + @override + String get link => 'Odkaz'; + + @override + String get open => 'Otvoriť'; + + @override + String get copy => 'Kopírovať'; + + @override + String get remove => 'Odstrániť'; + + @override + String get save => 'Uložiť'; + + @override + String get zoom => 'Priblížiť'; + + @override + String get saved => 'Uložené'; + + @override + String get text => 'Text'; + + @override + String get resize => 'Zmeniť veľkosť'; + + @override + String get width => 'Šírka'; + + @override + String get height => 'Výška'; + + @override + String get size => 'Veľkosť'; + + @override + String get small => 'Malý'; + + @override + String get large => 'Velký'; + + @override + String get huge => 'Obrovsky'; + + @override + String get clear => 'Vymazať'; + + @override + String get font => 'Písmo'; + + @override + String get search => 'Hľadanie'; + + @override + String get camera => 'Kamera'; + + @override + String get video => 'Video'; + + @override + String get undo => 'Vrátiť'; + + @override + String get redo => 'Znova'; + + @override + String get fontFamily => 'Rodina písiem'; + + @override + String get fontSize => 'Veľkosť písma'; + + @override + String get bold => 'Tučné'; + + @override + String get subscript => 'Dolný index'; + + @override + String get superscript => 'Horný index'; + + @override + String get italic => 'Kurzíva'; + + @override + String get underline => 'Podčiarknutie'; + + @override + String get strikeThrough => 'Prečiarknuté'; + + @override + String get inlineCode => 'Inline kód'; + + @override + String get fontColor => 'Farba písma'; + + @override + String get backgroundColor => 'Farba pozadia'; + + @override + String get clearFormat => 'Odstrániť formátovanie'; + + @override + String get alignLeft => 'Zarovnať vľavo'; + + @override + String get alignCenter => 'Zarovnať na stred'; + + @override + String get alignRight => 'Zarovnať vpravo'; + + @override + String get justifyWinWidth => 'Zarovnať na šírku okna'; + + @override + String get textDirection => 'Smer textu'; + + @override + String get headerStyle => 'Štýl záhlavia'; + + @override + String get normal => 'Normálny'; + + @override + String get heading1 => 'Hlavička 1'; + + @override + String get heading2 => 'Hlavička 2'; + + @override + String get heading3 => 'Hlavička 3'; + + @override + String get heading4 => 'Hlavička 4'; + + @override + String get heading5 => 'Hlavička 5'; + + @override + String get heading6 => 'Hlavička 6'; + + @override + String get numberedList => 'Číslovaný zoznam'; + + @override + String get bulletList => 'Zoznam s odrážkami'; + + @override + String get checkedList => 'Zoznam s označením'; + + @override + String get codeBlock => 'Blok kódu'; + + @override + String get quote => 'Citácia'; + + @override + String get increaseIndent => 'Zväčšiť odsadenie'; + + @override + String get decreaseIndent => 'Zmenšiť odsadenie'; + + @override + String get insertURL => 'Vložiť URL'; + + @override + String get visitLink => 'Navštíviť odkaz'; + + @override + String get enterLink => 'Zadať odkaz'; + + @override + String get enterMedia => 'Zadať médium'; + + @override + String get edit => 'Upraviť'; + + @override + String get apply => 'Použiť'; + + @override + String get hex => 'Hex'; + + @override + String get material => 'Materiál'; + + @override + String get color => 'Farba'; + + @override + String get findText => 'Nájsť text'; + + @override + String get moveToPreviousOccurrence => 'Prejsť na predchádzajúce výskyty'; + + @override + String get moveToNextOccurrence => 'Prejsť na ďalší výskyt'; + + @override + String get savedUsingTheNetwork => 'Uložené pomocou siete'; + + @override + String get savedUsingLocalStorage => 'Uložené pomocou lokálneho úložiska'; + + @override + String theImageHasBeenSavedAt(String imagePath) { + return 'Obrázok bol uložený v: $imagePath'; + } + + @override + String get errorWhileSavingImage => 'Chyba pri ukladaní obrázka'; + + @override + String get pleaseEnterTextForYourLink => + "Prosím zadajte text pre váš odkaz (napr. 'Ďalšie informácie')"; + + @override + String get pleaseEnterTheLinkURL => + "Prosím zadajte URL odkazu (napr. 'https://example.com')"; + + @override + String get pleaseEnterAValidImageURL => + 'Prosím zadajte platnú URL adresu obrázka'; + + @override + String get pleaseEnterAValidVideoURL => + 'Prosím zadajte platnú URL adresu videa'; + + @override + String get photo => 'Fotografia'; + + @override + String get image => 'Obrázok'; + + @override + String get caseSensitivityAndWholeWordSearch => + 'Citlivosť na veľkosť písmen a vyhľadávanie celých slov'; + + @override + String get insertImage => 'Vložiť obrázok'; + + @override + String get pickAPhotoFromYourGallery => 'Vyberte fotografiu z vašej galérie'; + + @override + String get takeAPhotoUsingYourCamera => + 'Odfotografovať fotografiu pomocou vašej kamery'; + + @override + String get pasteAPhotoUsingALink => 'Vložiť fotografiu pomocou odkazu'; + + @override + String get pickAVideoFromYourGallery => 'Vyberte video z vašej galérie'; + + @override + String get recordAVideoUsingYourCamera => + 'Natočiť video pomocou vašej kamery'; + + @override + String get pasteAVideoUsingALink => 'Vložiť video pomocou odkazu'; +} diff --git a/lib/src/l10n/quill_cs.arb b/lib/src/l10n/quill_cs.arb index a009adab..ba8b0597 100644 --- a/lib/src/l10n/quill_cs.arb +++ b/lib/src/l10n/quill_cs.arb @@ -77,6 +77,29 @@ "photo": "Foto", "image": "Obrázek", "caseSensitivityAndWholeWordSearch": "Citlivost na velká a malá písmena a vyhledávání celého slova", - "insertImage": "Vložit obrázek" + "insertImage": "Vložit obrázek", + "normal": "Normální text", + "heading1": "Nadpis 1", + "heading2": "Nadpis 2", + "heading3": "Nadpis 3", + "heading4": "Nadpis 4", + "heading5": "Nadpis 5", + "heading6": "Nadpis 6", + "theImageHasBeenSavedAt": "Obrázek byl uložen v: {imagePath}", + "@theImageHasBeenSavedAt": { + "description": "Zpráva s jedním parametrem", + "placeholders": { + "imagePath": { + "type": "String", + "example": "cesta/k/umístění" + } + } + }, + "pickAPhotoFromYourGallery": "Vybrat fotku z galerie", + "takeAPhotoUsingYourCamera": "Použít fotoaparát", + "pasteAPhotoUsingALink": "Vložit fotografii pomocí odkazu", + "pickAVideoFromYourGallery": "Vyberte video z galerie", + "recordAVideoUsingYourCamera": "Natočit video pomocí kamery", + "pasteAVideoUsingALink": "Vložit video pomocí odkazu" } \ No newline at end of file diff --git a/lib/src/l10n/quill_sk.arb b/lib/src/l10n/quill_sk.arb new file mode 100644 index 00000000..a5eede3b --- /dev/null +++ b/lib/src/l10n/quill_sk.arb @@ -0,0 +1,100 @@ +{ + "@@locale": "sk", + "pasteLink": "Vložiť odkaz", + "ok": "Ok", + "selectColor": "Vybrať farbu", + "gallery": "Galéria", + "link": "Odkaz", + "open": "Otvoriť", + "copy": "Kopírovať", + "remove": "Odstrániť", + "save": "Uložiť", + "zoom": "Priblížiť", + "saved": "Uložené", + "text": "Text", + "resize": "Zmeniť veľkosť", + "width": "Šírka", + "height": "Výška", + "size": "Veľkosť", + "small": "Malý", + "large": "Velký", + "huge": "Obrovsky", + "clear": "Vymazať", + "font": "Písmo", + "search": "Hľadanie", + "camera": "Kamera", + "video": "Video", + "undo": "Vrátiť", + "redo": "Znova", + "fontFamily": "Rodina písiem", + "fontSize": "Veľkosť písma", + "bold": "Tučné", + "subscript": "Dolný index", + "superscript": "Horný index", + "italic": "Kurzíva", + "underline": "Podčiarknutie", + "strikeThrough": "Prečiarknuté", + "inlineCode": "Inline kód", + "fontColor": "Farba písma", + "backgroundColor": "Farba pozadia", + "clearFormat": "Odstrániť formátovanie", + "alignLeft": "Zarovnať vľavo", + "alignCenter": "Zarovnať na stred", + "alignRight": "Zarovnať vpravo", + "justifyWinWidth": "Zarovnať na šírku okna", + "textDirection": "Smer textu", + "headerStyle": "Štýl záhlavia", + "normal": "Normálny", + "heading1": "Hlavička 1", + "heading2": "Hlavička 2", + "heading3": "Hlavička 3", + "heading4": "Hlavička 4", + "heading5": "Hlavička 5", + "heading6": "Hlavička 6", + "numberedList": "Číslovaný zoznam", + "bulletList": "Zoznam s odrážkami", + "checkedList": "Zoznam s označením", + "codeBlock": "Blok kódu", + "quote": "Citácia", + "increaseIndent": "Zväčšiť odsadenie", + "decreaseIndent": "Zmenšiť odsadenie", + "insertURL": "Vložiť URL", + "visitLink": "Navštíviť odkaz", + "enterLink": "Zadať odkaz", + "enterMedia": "Zadať médium", + "edit": "Upraviť", + "apply": "Použiť", + "hex": "Hex", + "material": "Materiál", + "color": "Farba", + "findText": "Nájsť text", + "moveToPreviousOccurrence": "Prejsť na predchádzajúce výskyty", + "moveToNextOccurrence": "Prejsť na ďalší výskyt", + "savedUsingTheNetwork": "Uložené pomocou siete", + "savedUsingLocalStorage": "Uložené pomocou lokálneho úložiska", + "theImageHasBeenSavedAt": "Obrázok bol uložený v: {imagePath}", + "@theImageHasBeenSavedAt": { + "description": "Správa s jedným parametrom", + "placeholders": { + "imagePath": { + "type": "String", + "example": "cesta/ku/umiestneniu" + } + } + }, + "errorWhileSavingImage": "Chyba pri ukladaní obrázka", + "pleaseEnterTextForYourLink": "Prosím zadajte text pre váš odkaz (napr. 'Ďalšie informácie')", + "pleaseEnterTheLinkURL": "Prosím zadajte URL odkazu (napr. 'https://example.com')", + "pleaseEnterAValidImageURL": "Prosím zadajte platnú URL adresu obrázka", + "pleaseEnterAValidVideoURL": "Prosím zadajte platnú URL adresu videa", + "photo": "Fotografia", + "image": "Obrázok", + "caseSensitivityAndWholeWordSearch": "Citlivosť na veľkosť písmen a vyhľadávanie celých slov", + "insertImage": "Vložiť obrázok", + "pickAPhotoFromYourGallery": "Vyberte fotografiu z vašej galérie", + "takeAPhotoUsingYourCamera": "Odfotografovať fotografiu pomocou vašej kamery", + "pasteAPhotoUsingALink": "Vložiť fotografiu pomocou odkazu", + "pickAVideoFromYourGallery": "Vyberte video z vašej galérie", + "recordAVideoUsingYourCamera": "Natočiť video pomocou vašej kamery", + "pasteAVideoUsingALink": "Vložiť video pomocou odkazu" +} \ No newline at end of file diff --git a/lib/src/l10n/untranslated.json b/lib/src/l10n/untranslated.json index d4d16a80..b3601468 100644 --- a/lib/src/l10n/untranslated.json +++ b/lib/src/l10n/untranslated.json @@ -37,23 +37,6 @@ "pasteAVideoUsingALink" ], - "cs": [ - "normal", - "heading1", - "heading2", - "heading3", - "heading4", - "heading5", - "heading6", - "theImageHasBeenSavedAt", - "pickAPhotoFromYourGallery", - "takeAPhotoUsingYourCamera", - "pasteAPhotoUsingALink", - "pickAVideoFromYourGallery", - "recordAVideoUsingYourCamera", - "pasteAVideoUsingALink" - ], - "da": [ "normal", "heading1", diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index 670cd8ee..da636414 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -1453,6 +1453,7 @@ class QuillRawEditorState extends EditorState void _handleFocusChanged() { if (dirty) { + requestKeyboard(); SchedulerBinding.instance .addPostFrameCallback((_) => _handleFocusChanged()); return; diff --git a/lib/src/widgets/toolbar/buttons/font_family_button.dart b/lib/src/widgets/toolbar/buttons/font_family_button.dart index 01a2cb47..a8ba667b 100644 --- a/lib/src/widgets/toolbar/buttons/font_family_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_family_button.dart @@ -120,6 +120,13 @@ class QuillToolbarFontFamilyButtonState return iconSize ?? baseFontSize ?? kDefaultIconSize; } + double get iconButtonFactor { + final baseIconFactor = + context.quillToolbarBaseButtonOptions?.iconButtonFactor; + final iconButtonFactor = widget.options.iconButtonFactor; + return iconButtonFactor ?? baseIconFactor ?? kDefaultIconButtonFactor; + } + VoidCallback? get afterButtonPressed { return options.afterButtonPressed ?? context.quillToolbarBaseButtonOptions?.afterButtonPressed; @@ -233,14 +240,7 @@ class QuillToolbarFontFamilyButtonState } return QuillToolbarIconButton( isSelected: false, - iconTheme: iconTheme?.copyWith( - iconButtonSelectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - iconButtonUnselectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - ), + iconTheme: iconTheme, onPressed: _onPressed, icon: _buildContent(context), ); @@ -273,10 +273,9 @@ class QuillToolbarFontFamilyButtonState ), ), ), - const SizedBox(width: 3), Icon( Icons.arrow_drop_down, - size: iconSize / 1.15, + size: iconSize * iconButtonFactor, // color: iconTheme?.iconUnselectedFillColor ?? theme.iconTheme.color, ) ], diff --git a/lib/src/widgets/toolbar/buttons/font_size_button.dart b/lib/src/widgets/toolbar/buttons/font_size_button.dart index 1323c1d2..17807c47 100644 --- a/lib/src/widgets/toolbar/buttons/font_size_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_size_button.dart @@ -203,14 +203,7 @@ class QuillToolbarFontSizeButtonState return QuillToolbarIconButton( tooltip: tooltip, isSelected: false, - iconTheme: iconTheme?.copyWith( - iconButtonSelectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - iconButtonUnselectedData: const IconButtonData( - visualDensity: VisualDensity.compact, - ), - ), + iconTheme: iconTheme, onPressed: _onDropdownButtonPressed, icon: _buildContent(context), ); @@ -241,10 +234,9 @@ class QuillToolbarFontSizeButtonState ), ), ), - const SizedBox(width: 3), Icon( Icons.arrow_drop_down, - size: iconSize / 1.15, + size: iconSize * iconButtonFactor, ) ], ), diff --git a/pubspec.yaml b/pubspec.yaml index 0ce11760..ae4d772c 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: 9.3.5 +version: 9.3.7 homepage: https://1o24bbs.com/c/bulletjournal/108/ repository: https://github.com/singerdmx/flutter-quill/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/quill_html_converter/CHANGELOG.md b/quill_html_converter/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/quill_html_converter/CHANGELOG.md +++ b/quill_html_converter/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/quill_html_converter/pubspec.yaml b/quill_html_converter/pubspec.yaml index 76786e3a..79226bf6 100644 --- a/quill_html_converter/pubspec.yaml +++ b/quill_html_converter/pubspec.yaml @@ -1,6 +1,6 @@ name: quill_html_converter description: A extension for flutter_quill package to add support for dealing with conversion to/from html -version: 9.3.5 +version: 9.3.7 homepage: https://github.com/singerdmx/flutter-quill/tree/master/quill_html_converter/ repository: https://github.com/singerdmx/flutter-quill/tree/master/quill_html_converter/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/quill_pdf_converter/CHANGELOG.md b/quill_pdf_converter/CHANGELOG.md index 1d5bd801..8e284f0c 100644 --- a/quill_pdf_converter/CHANGELOG.md +++ b/quill_pdf_converter/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## 9.3.7 +* Fix for keyboard jumping when switching focus from a TextField +* Toolbar button styling to reflect cursor position when running on desktops with keyboard to move care + +## 9.3.6 +* Add SK and update CS locales [#1796](https://github.com/singerdmx/flutter-quill/pull/1796) +* Fixes: + * QuillIconTheme changes for FontFamily and FontSize buttons are not applied [#1797](https://github.com/singerdmx/flutter-quill/pull/1796) + * Make the arrow_drop_down icons in the QuillToolbar the same size for all MenuAnchor buttons [#1799](https://github.com/singerdmx/flutter-quill/pull/1796) + ## 9.3.5 * Update the minimum version for the packages to support `device_info_plus` version 10.0.0 [#1783](https://github.com/singerdmx/flutter-quill/issues/1783) * Update the minimum version for `youtube_player_flutter` to new major version 9.0.0 in the `flutter_quill_extensions` diff --git a/quill_pdf_converter/pubspec.yaml b/quill_pdf_converter/pubspec.yaml index 56f96709..25ce11c9 100644 --- a/quill_pdf_converter/pubspec.yaml +++ b/quill_pdf_converter/pubspec.yaml @@ -1,6 +1,6 @@ name: quill_pdf_converter description: A extension for flutter_quill package to add support for dealing with conversion to pdf -version: 9.3.5 +version: 9.3.7 homepage: https://github.com/singerdmx/flutter-quill/tree/master/quill_pdf_converter/ repository: https://github.com/singerdmx/flutter-quill/tree/master/quill_pdf_converter/ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ diff --git a/version.dart b/version.dart index e273ca4d..2ffaace0 100644 --- a/version.dart +++ b/version.dart @@ -1 +1 @@ -const version = '9.3.5'; +const version = '9.3.7';