|
|
@ -46,7 +46,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
this.multiRowsDisplay = true, |
|
|
|
this.multiRowsDisplay = true, |
|
|
|
this.color, |
|
|
|
this.color, |
|
|
|
this.customButtons = const [], |
|
|
|
this.customButtons = const [], |
|
|
|
this.locale, |
|
|
|
|
|
|
|
VoidCallback? afterButtonPressed, |
|
|
|
VoidCallback? afterButtonPressed, |
|
|
|
this.sectionDividerColor, |
|
|
|
this.sectionDividerColor, |
|
|
|
this.sectionDividerSpace, |
|
|
|
this.sectionDividerSpace, |
|
|
@ -243,7 +242,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
toolbarIconCrossAlignment: toolbarIconCrossAlignment, |
|
|
|
toolbarIconCrossAlignment: toolbarIconCrossAlignment, |
|
|
|
multiRowsDisplay: multiRowsDisplay, |
|
|
|
multiRowsDisplay: multiRowsDisplay, |
|
|
|
customButtons: customButtons, |
|
|
|
customButtons: customButtons, |
|
|
|
locale: locale, |
|
|
|
|
|
|
|
afterButtonPressed: afterButtonPressed, |
|
|
|
afterButtonPressed: afterButtonPressed, |
|
|
|
childrenBuilder: (context) { |
|
|
|
childrenBuilder: (context) { |
|
|
|
final controller = context.requireQuillController; |
|
|
|
final controller = context.requireQuillController; |
|
|
@ -625,10 +623,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
/// is given. |
|
|
|
/// is given. |
|
|
|
final Color? color; |
|
|
|
final Color? color; |
|
|
|
|
|
|
|
|
|
|
|
/// The locale to use for the editor toolbar, defaults to system locale |
|
|
|
|
|
|
|
/// More https://github.com/singerdmx/flutter-quill#translation |
|
|
|
|
|
|
|
final Locale? locale; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// List of custom buttons |
|
|
|
/// List of custom buttons |
|
|
|
final List<QuillCustomButton> customButtons; |
|
|
|
final List<QuillCustomButton> customButtons; |
|
|
|
|
|
|
|
|
|
|
@ -652,7 +646,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return I18n( |
|
|
|
return I18n( |
|
|
|
initialLocale: locale, |
|
|
|
initialLocale: context.sharedQuillConfigurations?.locale, |
|
|
|
child: multiRowsDisplay |
|
|
|
child: multiRowsDisplay |
|
|
|
? Wrap( |
|
|
|
? Wrap( |
|
|
|
direction: axis, |
|
|
|
direction: axis, |
|
|
|