Rich text editor for Flutter
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
701 B

import 'package:flutter/material.dart';
import '../models/documents/nodes/leaf.dart' as leaf;
import '../models/themes/quill_dialog_theme.dart';
import '../models/themes/quill_icon_theme.dart';
import 'controller.dart';
abstract class EmbedBuilder {
String get key;
bool get expanded => true;
WidgetSpan buildWidgetSpan(Widget widget) {
return WidgetSpan(child: widget);
}
Widget build(
BuildContext context,
QuillController controller,
leaf.Embed node,
bool readOnly,
bool inline,
);
}
typedef EmbedButtonBuilder = Widget Function(
QuillController controller,
double toolbarIconSize,
QuillIconTheme? iconTheme,
QuillDialogTheme? dialogTheme);