File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
frontend/app_flowy/packages/appflowy_editor/example/lib Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -111,47 +111,6 @@ class _MyHomePageState extends State<MyHomePage> {
111111 if (! darkMode) ...lightEditorStyleExtension,
112112 if (! darkMode) ...lightPlguinStyleExtension,
113113 ]);
114- final delta = Delta ();
115- delta.add (TextInsert ('Hello ' ));
116- delta.add (
117- TextInsert (
118- 'World' ,
119- attributes: {
120- BuiltInAttributeKey .bold: true ,
121- BuiltInAttributeKey .italic: true ,
122- },
123- ),
124- );
125- delta.add (
126- TextInsert (
127- ' ' ,
128- ),
129- );
130- delta.add (
131- TextInsert (
132- 'Again' ,
133- attributes: {
134- BuiltInAttributeKey .italic: true ,
135- },
136- ),
137- );
138- delta.add (
139- TextInsert (
140- ' ' ,
141- ),
142- );
143- delta.add (
144- TextInsert (
145- 'Again' ,
146- attributes: {
147- BuiltInAttributeKey .href: 'https://google.com' ,
148- BuiltInAttributeKey .italic: true ,
149- BuiltInAttributeKey .bold: true ,
150- BuiltInAttributeKey .strikethrough: true ,
151- },
152- ),
153- );
154- final result = DeltaMarkdownEncoder ().convert (delta);
155114 return Container (
156115 color: darkMode ? Colors .black : Colors .white,
157116 width: MediaQuery .of (context).size.width,
You can’t perform that action at this time.
0 commit comments