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.
30 lines
661 B
30 lines
661 B
9 months ago
|
import 'package:flutter/widgets.dart';
|
||
3 years ago
|
|
||
1 year ago
|
import '../../../extensions.dart';
|
||
9 months ago
|
import '../../controller/quill_controller.dart';
|
||
|
import '../../document/nodes/leaf.dart' as leaf;
|
||
3 years ago
|
|
||
|
abstract class EmbedBuilder {
|
||
2 years ago
|
const EmbedBuilder();
|
||
|
|
||
3 years ago
|
String get key;
|
||
2 years ago
|
bool get expanded => true;
|
||
|
|
||
|
WidgetSpan buildWidgetSpan(Widget widget) {
|
||
|
return WidgetSpan(child: widget);
|
||
|
}
|
||
3 years ago
|
|
||
2 years ago
|
String toPlainText(Embed node) => Embed.kObjectReplacementCharacter;
|
||
|
|
||
3 years ago
|
Widget build(
|
||
|
BuildContext context,
|
||
|
QuillController controller,
|
||
|
leaf.Embed node,
|
||
|
bool readOnly,
|
||
2 years ago
|
bool inline,
|
||
2 years ago
|
TextStyle textStyle,
|
||
3 years ago
|
);
|
||
|
}
|
||
|
|
||
9 months ago
|
typedef EmbedsBuilder = EmbedBuilder Function(Embed node);
|