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.
46 lines
1.6 KiB
46 lines
1.6 KiB
2 years ago
|
import 'package:equatable/equatable.dart';
|
||
2 years ago
|
import 'package:flutter/material.dart' show Color, Colors, Locale;
|
||
2 years ago
|
|
||
1 year ago
|
import '../themes/quill_dialog_theme.dart';
|
||
2 years ago
|
import './editor/configurations.dart' show QuillEditorConfigurations;
|
||
1 year ago
|
import 'toolbar/toolbar_configurations.dart' show QuillToolbarConfigurations;
|
||
2 years ago
|
|
||
|
export './others/animations.dart';
|
||
2 years ago
|
|
||
|
/// The shared configurations between [QuillEditorConfigurations] and
|
||
|
/// [QuillToolbarConfigurations] so we don't duplicate things
|
||
2 years ago
|
class QuillSharedConfigurations extends Equatable {
|
||
2 years ago
|
const QuillSharedConfigurations({
|
||
|
this.dialogBarrierColor = Colors.black54,
|
||
2 years ago
|
this.dialogTheme,
|
||
2 years ago
|
this.locale,
|
||
1 year ago
|
this.extraConfigurations = const {},
|
||
2 years ago
|
});
|
||
|
|
||
|
// This is just example or showcase of this major update to make the library
|
||
|
// more maintanable, flexible, and customizable
|
||
|
/// The barrier color of the shown dialogs
|
||
|
final Color dialogBarrierColor;
|
||
|
|
||
2 years ago
|
/// The default dialog theme for all the dialogs for quill editor and
|
||
|
/// quill toolbar
|
||
|
final QuillDialogTheme? dialogTheme;
|
||
|
|
||
2 years ago
|
/// The locale to use for the editor and toolbar, defaults to system locale
|
||
1 year ago
|
/// More https://github.com/singerdmx/flutter-quill/blob/master/doc/translation.md
|
||
|
/// this won't used if you defined the [FlutterQuillLocalizations.delegate]
|
||
|
/// in the `localizationsDelegates` which exists in
|
||
|
/// `MaterialApp` or `WidgetsApp`
|
||
2 years ago
|
final Locale? locale;
|
||
2 years ago
|
|
||
1 year ago
|
/// Store custom configurations in here and use it in the widget tree
|
||
|
final Map<String, Object?> extraConfigurations;
|
||
|
|
||
2 years ago
|
@override
|
||
|
List<Object?> get props => [
|
||
|
dialogBarrierColor,
|
||
2 years ago
|
dialogTheme,
|
||
2 years ago
|
locale,
|
||
|
];
|
||
2 years ago
|
}
|