Cierra_Runis 2 years ago
commit e03b7fac29
No known key found for this signature in database
GPG Key ID: 6A879A1FDB3BF78
  1. 6
      CHANGELOG.md
  2. 4
      lib/src/models/themes/quill_custom_button.dart
  3. 70
      lib/src/translations/toolbar.i18n.dart
  4. 7
      lib/src/widgets/toolbar.dart
  5. 2
      pubspec.yaml

@ -1,3 +1,9 @@
# [7.2.8]
- Add custom button widget in toolbar.
# [7.2.7]
- Fix language code of Japan.
# [7.2.6] # [7.2.6]
- Style custom toolbar buttons like builtins. - Style custom toolbar buttons like builtins.

@ -6,6 +6,7 @@ class QuillCustomButton {
this.iconColor, this.iconColor,
this.onTap, this.onTap,
this.tooltip, this.tooltip,
this.child,
}); });
///The icon widget ///The icon widget
@ -17,6 +18,9 @@ class QuillCustomButton {
///The function when the icon is tapped ///The function when the icon is tapped
final VoidCallback? onTap; final VoidCallback? onTap;
///The customButton placeholder
final Widget? child;
/// The button tooltip. /// The button tooltip.
final String? tooltip; final String? tooltip;
} }

@ -1936,6 +1936,76 @@ extension Localization on String {
'Edit': 'Edit', 'Edit': 'Edit',
'Apply': 'Apply', 'Apply': 'Apply',
}, },
'bn': {
'Paste a link': 'িক পট কর',
'Ok': 'ওক',
'Select Color': 'র সিট কর',
'Gallery': 'ি',
'Link': 'ি',
'Please first select some text to transform into a link.':
'অনরহ কররথম একটিিতরিত কর'
'জনয কিয নিচন করন।',
'Open': 'ওপ',
'Copy': 'কপি',
'Remove': 'ি',
'Save': '',
'Zoom': '',
'Saved': 'ভড',
'Text': 'সট',
'What is entered is not a link': 'ওয় হয একটিিক নয',
'Resize': 'িইজ',
'Width': 'রস',
'Height': '',
'Size': 'ইজ',
'Small': '',
'Large': 'বড়',
'Huge': 'ি',
'Clear': 'ি',
'Font': 'ফন',
'Search': '',
'matches': 'ি',
'showing match': 'িল দ হচ',
'Prev': 'ববর',
'Next': 'পরবর',
'Camera': '',
'Video': 'িি',
'Undo': 'আন',
'Redo': 'ি',
'Font family': 'ফনট ফিি',
'Font size': 'ফনট সইজ',
'Bold': '',
'Subscript': 'বসি',
'Superscript': 'রসি',
'Italic': 'ইটি',
'Underline': 'আনরলইন',
'Strike through': 'ইক থ',
'Inline code': 'ইনলইন ক',
'Font color': 'ফনট ক',
'Background color': 'কগউনড ক',
'Clear format': 'ির ফরম',
'Align left': 'ম সিবদ',
'Align center': 'র সিবদ',
'Align right': 'ন সিবদ',
'Justify win width': 'রসর সযত',
'Text direction': 'সট ডিকশন',
'Header style': 'র সইল',
'Numbered list': 'ত তি',
'Bullet list': 'ট তি',
'Checked list': 'ক করি',
'Code block': 'ড বলক',
'Quote': 'উকি',
'Increase indent': 'ইনট ব',
'Decrease indent': 'ইনট কম',
'Insert URL': 'UR দি',
'Visit link': 'িিট লি',
'Enter link': 'িক দি',
'Enter media': 'িিি',
'Edit': 'ইডি',
'Apply': 'এপ',
'Hex': '',
'Material': 'ি',
'Color': '',
},
}; };
String get i18n => localize(this, _t); String get i18n => localize(this, _t);

@ -567,6 +567,12 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
QuillDivider(axis, QuillDivider(axis,
color: sectionDividerColor, space: sectionDividerSpace), color: sectionDividerColor, space: sectionDividerSpace),
for (var customButton in customButtons) for (var customButton in customButtons)
if (customButton.child != null) ...[
InkWell(
onTap: customButton.onTap,
child: customButton.child,
),
] else ...[
CustomButton( CustomButton(
onPressed: customButton.onTap, onPressed: customButton.onTap,
icon: customButton.icon, icon: customButton.icon,
@ -577,6 +583,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
tooltip: customButton.tooltip, tooltip: customButton.tooltip,
), ),
], ],
],
); );
} }

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 7.2.6 version: 7.2.8
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save