From 7076e201355bc3d27cb28809e71f6f33499c7b3c Mon Sep 17 00:00:00 2001 From: Ellet <73608287+freshtechtips@users.noreply.github.com> Date: Sun, 12 Nov 2023 01:42:02 +0300 Subject: [PATCH] Add .pubignore (#1521) * Add .pubignore --- .pubignore | 10 +++++++++- CHANGELOG.md | 4 +++- lib/src/translations/toolbar.i18n.dart | 4 +++- lib/src/widgets/toolbar/buttons/quill_icon.dart | 9 +-------- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.pubignore b/.pubignore index 92959320..75a774c0 100644 --- a/.pubignore +++ b/.pubignore @@ -1,3 +1,11 @@ # For local development pubspec_overrides.yaml -pubspec_overrides.yaml.g \ No newline at end of file +pubspec_overrides.yaml.g + +# Github +.github/ + +# The example +example/.fvm/ +example/build/ +example/.dart_tool/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 20fcff99..bc41aa38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [8.4.4] +- Update `.pubignore` to ignore unnecessary files and folders + ## [8.4.3] - Update `CHANGELOG.md` @@ -7,7 +10,6 @@ - You can use now the `QuillRawEditor` without `QuillEditorProvider` - Bug fixes - Add implementation of image cropping in the `example` - ## [8.4.1] - Add `copyWith` in `OptionalSize` class diff --git a/lib/src/translations/toolbar.i18n.dart b/lib/src/translations/toolbar.i18n.dart index d9957111..45548881 100644 --- a/lib/src/translations/toolbar.i18n.dart +++ b/lib/src/translations/toolbar.i18n.dart @@ -74,7 +74,9 @@ extension Localization on String { 'Error while saving image': 'Error while saving image', 'Please enter a text for your link': "e.g., 'Learn more)", 'Please enter the link url': "e.g., 'https://example.com'", - 'Please enter a valid image url': 'Please enter a valid image url' + 'Please enter a valid image url': 'Please enter a valid image url', + 'Photo': 'Photo', + 'Image': 'Image', }, 'en_us': { 'Paste a link': 'Paste a link', diff --git a/lib/src/widgets/toolbar/buttons/quill_icon.dart b/lib/src/widgets/toolbar/buttons/quill_icon.dart index 8c2b9637..d78494d0 100644 --- a/lib/src/widgets/toolbar/buttons/quill_icon.dart +++ b/lib/src/widgets/toolbar/buttons/quill_icon.dart @@ -19,6 +19,7 @@ class QuillToolbarIconButton extends StatelessWidget { final VoidCallback? onPressed; final VoidCallback? afterPressed; final Widget? icon; + final double size; final Color? fillColor; final double hoverElevation; @@ -28,14 +29,6 @@ class QuillToolbarIconButton extends StatelessWidget { @override Widget build(BuildContext context) { - // return IconButton( - // onPressed: () { - // onPressed?.call(); - // afterPressed?.call(); - // }, - // icon: icon ?? const SizedBox.shrink(), - // tooltip: tooltip, - // ); return ConstrainedBox( constraints: BoxConstraints.tightFor(width: size, height: size), child: UtilityWidgets.maybeTooltip(