Skip to content

Commit f6e1f21

Browse files
committed
chore: remove unused code
1 parent 2e7f803 commit f6e1f21

File tree

1 file changed

+0
-41
lines changed
  • frontend/app_flowy/packages/appflowy_editor/example/lib

1 file changed

+0
-41
lines changed

frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)