Skip to content

Commit 9decd03

Browse files
authored
[SuperEditor] - Add inline widget builder support to list items
1 parent e20eee2 commit 9decd03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

super_editor/lib/src/default_editor/list_items.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class ListItemComponentBuilder implements ComponentBuilder {
209209
selectionColor: componentViewModel.selectionColor,
210210
highlightWhenEmpty: componentViewModel.highlightWhenEmpty,
211211
underlines: componentViewModel.createUnderlines(),
212+
inlineWidgetBuilders: componentViewModel.inlineWidgetBuilders,
212213
);
213214
} else if (componentViewModel is OrderedListItemComponentViewModel) {
214215
return OrderedListItemComponent(
@@ -224,6 +225,7 @@ class ListItemComponentBuilder implements ComponentBuilder {
224225
selectionColor: componentViewModel.selectionColor,
225226
highlightWhenEmpty: componentViewModel.highlightWhenEmpty,
226227
underlines: componentViewModel.createUnderlines(),
228+
inlineWidgetBuilders: componentViewModel.inlineWidgetBuilders,
227229
);
228230
}
229231

@@ -378,6 +380,7 @@ class UnorderedListItemComponentViewModel extends ListItemComponentViewModel {
378380
spellingErrors: List.from(spellingErrors),
379381
grammarErrorUnderlineStyle: grammarErrorUnderlineStyle,
380382
grammarErrors: List.from(grammarErrors),
383+
inlineWidgetBuilders: inlineWidgetBuilders,
381384
);
382385
}
383386

@@ -447,6 +450,7 @@ class OrderedListItemComponentViewModel extends ListItemComponentViewModel {
447450
spellingErrors: List.from(spellingErrors),
448451
grammarErrorUnderlineStyle: grammarErrorUnderlineStyle,
449452
grammarErrors: List.from(grammarErrors),
453+
inlineWidgetBuilders: inlineWidgetBuilders,
450454
);
451455
}
452456

0 commit comments

Comments
 (0)