Change divier class name

pull/1452/head
Ahmed Hnewa 2 years ago
parent 7aab2add96
commit 16f71cd087
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 20
      lib/src/widgets/toolbar/toolbar.dart

@ -385,7 +385,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
isButtonGroupShown[3] || isButtonGroupShown[3] ||
isButtonGroupShown[4] || isButtonGroupShown[4] ||
isButtonGroupShown[5])) isButtonGroupShown[5]))
QuillDivider( QuillToolbarDivider(
axis, axis,
color: sectionDividerColor, color: sectionDividerColor,
space: sectionDividerSpace, space: sectionDividerSpace,
@ -428,7 +428,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
isButtonGroupShown[3] || isButtonGroupShown[3] ||
isButtonGroupShown[4] || isButtonGroupShown[4] ||
isButtonGroupShown[5])) isButtonGroupShown[5]))
QuillDivider( QuillToolbarDivider(
axis, axis,
color: sectionDividerColor, color: sectionDividerColor,
space: sectionDividerSpace, space: sectionDividerSpace,
@ -448,7 +448,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
(isButtonGroupShown[3] || (isButtonGroupShown[3] ||
isButtonGroupShown[4] || isButtonGroupShown[4] ||
isButtonGroupShown[5])) isButtonGroupShown[5]))
QuillDivider( QuillToolbarDivider(
axis, axis,
color: sectionDividerColor, color: sectionDividerColor,
space: sectionDividerSpace, space: sectionDividerSpace,
@ -508,7 +508,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
if (showDividers && if (showDividers &&
isButtonGroupShown[3] && isButtonGroupShown[3] &&
(isButtonGroupShown[4] || isButtonGroupShown[5])) (isButtonGroupShown[4] || isButtonGroupShown[5]))
QuillDivider(axis, QuillToolbarDivider(axis,
color: sectionDividerColor, space: sectionDividerSpace), color: sectionDividerColor, space: sectionDividerSpace),
if (showQuote) if (showQuote)
QuillToolbarToggleStyleButton( QuillToolbarToggleStyleButton(
@ -545,7 +545,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
afterButtonPressed: afterButtonPressed, afterButtonPressed: afterButtonPressed,
), ),
if (showDividers && isButtonGroupShown[4] && isButtonGroupShown[5]) if (showDividers && isButtonGroupShown[4] && isButtonGroupShown[5])
QuillDivider(axis, QuillToolbarDivider(axis,
color: sectionDividerColor, space: sectionDividerSpace), color: sectionDividerColor, space: sectionDividerSpace),
if (showLink) if (showLink)
QuillToolbarLinkStyleButton( QuillToolbarLinkStyleButton(
@ -574,7 +574,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
), ),
if (customButtons.isNotEmpty) if (customButtons.isNotEmpty)
if (showDividers) if (showDividers)
QuillDivider( QuillToolbarDivider(
axis, axis,
color: sectionDividerColor, color: sectionDividerColor,
space: sectionDividerSpace, space: sectionDividerSpace,
@ -677,8 +677,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
/// ///
/// It can be used outside of this package, for example when user does not use /// It can be used outside of this package, for example when user does not use
/// [QuillToolbar.basic] and compose toolbar's children on its own. /// [QuillToolbar.basic] and compose toolbar's children on its own.
class QuillDivider extends StatelessWidget { class QuillToolbarDivider extends StatelessWidget {
const QuillDivider( const QuillToolbarDivider(
this.axis, { this.axis, {
Key? key, Key? key,
this.color, this.color,
@ -686,11 +686,11 @@ class QuillDivider extends StatelessWidget {
}) : super(key: key); }) : super(key: key);
/// Provides a horizontal divider for vertical toolbar. /// Provides a horizontal divider for vertical toolbar.
const QuillDivider.horizontal({Color? color, double? space}) const QuillToolbarDivider.horizontal({Color? color, double? space})
: this(Axis.horizontal, color: color, space: space); : this(Axis.horizontal, color: color, space: space);
/// Provides a horizontal divider for horizontal toolbar. /// Provides a horizontal divider for horizontal toolbar.
const QuillDivider.vertical({Color? color, double? space}) const QuillToolbarDivider.vertical({Color? color, double? space})
: this(Axis.vertical, color: color, space: space); : this(Axis.vertical, color: color, space: space);
/// The axis along which the toolbar is. /// The axis along which the toolbar is.

Loading…
Cancel
Save