dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.0 KiB
61 lines
2.0 KiB
2 years ago
|
import 'package:equatable/equatable.dart';
|
||
|
import 'package:flutter/widgets.dart'
|
||
1 year ago
|
show Axis, Color, Decoration, WrapAlignment, WrapCrossAlignment;
|
||
2 years ago
|
|
||
|
import '../../../widgets/toolbar/base_toolbar.dart';
|
||
|
import '../../structs/link_dialog_action.dart';
|
||
|
|
||
1 year ago
|
abstract class QuillSharedToolbarProperties extends Equatable {
|
||
|
const QuillSharedToolbarProperties({
|
||
|
this.toolbarSize,
|
||
2 years ago
|
this.axis = Axis.horizontal,
|
||
|
this.toolbarSectionSpacing = kToolbarSectionSpacing,
|
||
|
this.toolbarIconAlignment = WrapAlignment.center,
|
||
|
this.toolbarIconCrossAlignment = WrapCrossAlignment.center,
|
||
|
this.color,
|
||
|
this.customButtons = const [],
|
||
|
this.sectionDividerColor,
|
||
|
this.sectionDividerSpace,
|
||
|
this.linkDialogAction,
|
||
|
this.multiRowsDisplay = true,
|
||
|
this.decoration,
|
||
1 year ago
|
this.buttonOptions = const QuillToolbarButtonOptions(),
|
||
2 years ago
|
});
|
||
|
final Axis axis;
|
||
|
final double toolbarSectionSpacing;
|
||
|
final WrapAlignment toolbarIconAlignment;
|
||
|
final WrapCrossAlignment toolbarIconCrossAlignment;
|
||
1 year ago
|
final double? toolbarSize;
|
||
2 years ago
|
|
||
|
// Overrides the action in the _LinkDialog widget
|
||
|
final LinkDialogAction? linkDialogAction;
|
||
|
|
||
|
/// The color of the toolbar.
|
||
|
///
|
||
|
/// Defaults to [ThemeData.canvasColor] of the current [Theme] if no color
|
||
|
/// is given.
|
||
|
final Color? color;
|
||
|
|
||
|
/// List of custom buttons
|
||
1 year ago
|
final List<QuillToolbarCustomButtonOptions> customButtons;
|
||
2 years ago
|
|
||
|
/// The color to use when painting the toolbar section divider.
|
||
|
///
|
||
|
/// If this is null, then the [DividerThemeData.color] is used. If that is
|
||
|
/// also null, then [ThemeData.dividerColor] is used.
|
||
|
final Color? sectionDividerColor;
|
||
|
|
||
|
/// The space occupied by toolbar section divider.
|
||
|
final double? sectionDividerSpace;
|
||
|
|
||
|
/// If you want the toolbar to not be a multiple rows pass false
|
||
|
final bool multiRowsDisplay;
|
||
|
|
||
|
/// The decoration to use for the toolbar.
|
||
|
final Decoration? decoration;
|
||
|
|
||
1 year ago
|
/// If you want change spesefic buttons or all of them
|
||
|
/// then you came to the right place
|
||
|
final QuillToolbarButtonOptions buttonOptions;
|
||
2 years ago
|
}
|