Merge branch 'master' into new-features-improvements

pull/1419/head
Ahmed Hnewa 2 years ago committed by GitHub
commit 93a1ab6c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 12
      README.md
  3. 1
      doc_cn.md
  4. 12
      flutter_quill_extensions/lib/embeds/builders.dart
  5. 399
      lib/src/translations/toolbar.i18n.dart
  6. 2
      pubspec.yaml

@ -1,6 +1,6 @@
# [7.4.12]
- Update the minimum version of device_info_plus to 9.1.0
-
# [7.4.11]
- Add sw locale.

@ -197,6 +197,14 @@ QuillToolbar.basic(
);
```
> [!WARNING]
>
> This package uses [`gal`](https://github.com/natsuk4ze/) to save images.
> For this to work, you need to add the appropriate permissions
> to your `Info.plist` and `AndroidManifest.xml` files.
>
> See https://github.com/natsuk4ze/gal#-get-started to add the needed lines.
### Custom Size Image for Mobile
Define `mobileWidth`, `mobileHeight`, `mobileMargin`, `mobileAlignment` as follows:
@ -254,6 +262,7 @@ class NotesEmbedBuilder extends EmbedBuilder {
Embed node,
bool readOnly,
bool inline,
TextStyle textStyle,
) {
final notes = NotesBlockEmbed(node.value.data).document;
@ -345,7 +354,7 @@ QuillToolbar(locale: Locale('fr'), ...)
QuillEditor(locale: Locale('fr'), ...)
```
Currently, translations are available for these 30 locales:
Currently, translations are available for these 31 locales:
* `Locale('en')`
* `Locale('ar')`
@ -376,6 +385,7 @@ Currently, translations are available for these 30 locales:
* `Locale('fa')`
* `Locale('hi')`
* `Locale('sr')`
* `Locale('sw')`
* `Locale('ja')`
#### Contributing to translations

@ -261,6 +261,7 @@ class NotesEmbedBuilder extends EmbedBuilder {
Embed node,
bool readOnly,
bool inline,
TextStyle textStyle,
) {
final notes = NotesBlockEmbed(node.value.data).document;

@ -321,22 +321,20 @@ Widget _menuOptionsForReadonlyImage(
messenger.clearSnackBars();
if (!imageSavedSuccessfully) {
// TODO: Please translate this
messenger.showSnackBar(const SnackBar(
messenger.showSnackBar(SnackBar(
content: Text(
'Error while saveing the image',
'Error while saving image'.i18n,
)));
return;
}
var message = 'Saved'.i18n;
var message;
switch (saveImageResult.method) {
// TODO: Please translate this too
case SaveImageResultMethod.network:
message += ' using the network.';
message = 'Saved using the network'.i18n;
break;
case SaveImageResultMethod.localStorage:
message += ' using the local storage.';
message = 'Saved using the local storage'.i18n;
break;
}

File diff suppressed because it is too large Load Diff

@ -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: 7.4.9
version: 7.4.11
homepage: https://1o24bbs.com/c/bulletjournal/108
repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save