-
Notifications
You must be signed in to change notification settings - Fork 845
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ellet
committed
Dec 6, 2023
1 parent
0c4c6cd
commit 9727fea
Showing
11 changed files
with
593 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,23 @@ | ||
// ignore_for_file: public_member_api_docs, sort_constructors_first | ||
import 'package:flutter/widgets.dart' | ||
show Axis, WrapAlignment, WrapCrossAlignment, immutable; | ||
show Axis, Widget, WrapAlignment, WrapCrossAlignment, immutable; | ||
|
||
import '../../../widgets/toolbar/base_toolbar.dart'; | ||
import 'toolbar_shared_configurations.dart'; | ||
|
||
@immutable | ||
class QuillToolbarConfigurations extends QuillSharedToolbarProperties { | ||
const QuillToolbarConfigurations({ | ||
this.childrenBuilder, | ||
super.axis = Axis.horizontal, | ||
super.toolbarSize = kDefaultIconSize * 2, | ||
super.toolbarSectionSpacing = kToolbarSectionSpacing, | ||
super.toolbarIconAlignment = WrapAlignment.center, | ||
super.toolbarIconCrossAlignment = WrapCrossAlignment.center, | ||
super.color, | ||
super.sectionDividerColor, | ||
super.sectionDividerSpace, | ||
super.linkDialogAction, | ||
super.multiRowsDisplay = true, | ||
super.decoration, | ||
required this.child, | ||
super.sharedConfigurations, | ||
|
||
/// Note this only used when you using the quill toolbar buttons like | ||
/// `QuillToolbarHistoryButton` inside it | ||
super.buttonOptions = const QuillToolbarButtonOptions(), | ||
}); | ||
|
||
final QuillBaseToolbarChildrenBuilder? childrenBuilder; | ||
final Widget child; | ||
|
||
@override | ||
List<Object?> get props => []; | ||
|
||
QuillToolbarConfigurations copyWith({ | ||
QuillBaseToolbarChildrenBuilder? childrenBuilder, | ||
}) { | ||
return QuillToolbarConfigurations( | ||
childrenBuilder: childrenBuilder ?? this.childrenBuilder, | ||
); | ||
} | ||
} |
Oops, something went wrong.