// ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:equatable/equatable.dart'; import 'package:flutter/foundation.dart' show immutable; import 'base_button_configurations.dart'; import 'buttons/clear_format_configurations.dart'; import 'buttons/color_configurations.dart'; import 'buttons/custom_button_configurations.dart'; import 'buttons/font_family_configurations.dart'; import 'buttons/font_size_configurations.dart'; import 'buttons/history_configurations.dart'; import 'buttons/indent_configurations.dart'; import 'buttons/link_style2_configurations.dart'; import 'buttons/link_style_configurations.dart'; import 'buttons/search_configurations.dart'; import 'buttons/select_alignment_configurations.dart'; import 'buttons/select_header_style_buttons_configurations.dart'; import 'buttons/select_header_style_dropdown_button_configurations.dart'; import 'buttons/toggle_check_list_configurations.dart'; import 'buttons/toggle_style_configurations.dart'; export './../../../widgets/toolbar/buttons/search/search_dialog.dart'; export 'base_button_configurations.dart'; export 'buttons/clear_format_configurations.dart'; export 'buttons/color_configurations.dart'; export 'buttons/custom_button_configurations.dart'; export 'buttons/font_family_configurations.dart'; export 'buttons/font_size_configurations.dart'; export 'buttons/history_configurations.dart'; export 'buttons/indent_configurations.dart'; export 'buttons/link_style2_configurations.dart'; export 'buttons/link_style_configurations.dart'; export 'buttons/search_configurations.dart'; export 'buttons/select_alignment_configurations.dart'; export 'buttons/select_header_style_buttons_configurations.dart'; export 'buttons/select_header_style_dropdown_button_configurations.dart'; export 'buttons/toggle_check_list_configurations.dart'; export 'buttons/toggle_style_configurations.dart'; /// The configurations for the buttons of the toolbar widget of flutter quill @immutable class QuillSimpleToolbarButtonOptions extends Equatable { const QuillSimpleToolbarButtonOptions({ this.base = const QuillToolbarBaseButtonOptions(), this.undoHistory = const QuillToolbarHistoryButtonOptions(), this.redoHistory = const QuillToolbarHistoryButtonOptions(), this.fontFamily = const QuillToolbarFontFamilyButtonOptions(), this.fontSize = const QuillToolbarFontSizeButtonOptions(), this.bold = const QuillToolbarToggleStyleButtonOptions(), this.subscript = const QuillToolbarToggleStyleButtonOptions(), this.superscript = const QuillToolbarToggleStyleButtonOptions(), this.italic = const QuillToolbarToggleStyleButtonOptions(), this.small = const QuillToolbarToggleStyleButtonOptions(), this.underLine = const QuillToolbarToggleStyleButtonOptions(), this.strikeThrough = const QuillToolbarToggleStyleButtonOptions(), this.inlineCode = const QuillToolbarToggleStyleButtonOptions(), this.direction = const QuillToolbarToggleStyleButtonOptions(), this.listNumbers = const QuillToolbarToggleStyleButtonOptions(), this.listBullets = const QuillToolbarToggleStyleButtonOptions(), this.codeBlock = const QuillToolbarToggleStyleButtonOptions(), this.quote = const QuillToolbarToggleStyleButtonOptions(), this.toggleCheckList = const QuillToolbarToggleCheckListButtonOptions(), this.indentIncrease = const QuillToolbarIndentButtonOptions(), this.indentDecrease = const QuillToolbarIndentButtonOptions(), this.color = const QuillToolbarColorButtonOptions(), this.backgroundColor = const QuillToolbarColorButtonOptions(), this.clearFormat = const QuillToolbarClearFormatButtonOptions(), this.selectAlignmentButtons = const QuillToolbarSelectAlignmentButtonOptions(), this.search = const QuillToolbarSearchButtonOptions(), this.selectHeaderStyleButtons = const QuillToolbarSelectHeaderStyleButtonsOptions(), this.selectHeaderStyleDropdownButton = const QuillToolbarSelectHeaderStyleDropdownButtonOptions(), this.linkStyle = const QuillToolbarLinkStyleButtonOptions(), this.linkStyle2 = const QuillToolbarLinkStyleButton2Options(), this.customButtons = const QuillToolbarCustomButtonOptions(), this.clipboardCut = const QuillToolbarToggleStyleButtonOptions(), this.clipboardCopy = const QuillToolbarToggleStyleButtonOptions(), this.clipboardPaste = const QuillToolbarToggleStyleButtonOptions(), }); /// The base configurations for all the buttons which will apply to all /// but if the options overrided in the spesefic button options /// then it will use that instead final QuillToolbarBaseButtonOptions base; final QuillToolbarHistoryButtonOptions undoHistory; final QuillToolbarHistoryButtonOptions redoHistory; final QuillToolbarFontFamilyButtonOptions fontFamily; final QuillToolbarFontSizeButtonOptions fontSize; final QuillToolbarToggleStyleButtonOptions bold; final QuillToolbarToggleStyleButtonOptions subscript; final QuillToolbarToggleStyleButtonOptions superscript; final QuillToolbarToggleStyleButtonOptions italic; final QuillToolbarToggleStyleButtonOptions small; final QuillToolbarToggleStyleButtonOptions underLine; final QuillToolbarToggleStyleButtonOptions strikeThrough; final QuillToolbarToggleStyleButtonOptions inlineCode; final QuillToolbarToggleStyleButtonOptions direction; final QuillToolbarToggleStyleButtonOptions listNumbers; final QuillToolbarToggleStyleButtonOptions listBullets; final QuillToolbarToggleStyleButtonOptions codeBlock; final QuillToolbarToggleStyleButtonOptions quote; final QuillToolbarToggleCheckListButtonOptions toggleCheckList; final QuillToolbarIndentButtonOptions indentIncrease; final QuillToolbarIndentButtonOptions indentDecrease; final QuillToolbarColorButtonOptions color; final QuillToolbarColorButtonOptions backgroundColor; final QuillToolbarClearFormatButtonOptions clearFormat; /// The reason we call this buttons in the end because this is responsible /// for all the alignment buttons and not just one, you still /// can customize the icons and tooltips /// and you have child builder final QuillToolbarSelectAlignmentButtonOptions selectAlignmentButtons; final QuillToolbarSearchButtonOptions search; final QuillToolbarToggleStyleButtonOptions clipboardCut; final QuillToolbarToggleStyleButtonOptions clipboardCopy; final QuillToolbarToggleStyleButtonOptions clipboardPaste; /// The reason we call this buttons in the end because this is responsible /// for all the header style buttons and not just one, you still /// can customize it and you also have child builder final QuillToolbarSelectHeaderStyleButtonsOptions selectHeaderStyleButtons; /// The reason we call this buttons in the end because this is responsible /// for all the header style buttons and not just one, you still /// can customize it and you also have child builder final QuillToolbarSelectHeaderStyleDropdownButtonOptions selectHeaderStyleDropdownButton; final QuillToolbarLinkStyleButtonOptions linkStyle; final QuillToolbarLinkStyleButton2Options linkStyle2; final QuillToolbarCustomButtonOptions customButtons; @override List get props => [ base, ]; }