Flutter Code Editor is a multi-platform code editor supporting syntax highlighting, code blocks folding, autocompletion, read-only code blocks, hiding specific code blocks, themes, and more.
I made Autocompleter abstract class and renamed default one to DefaultAutocompleter, so user can create its own implementation
also created SuggestionItem to be more customizable than just String, in some cases the displayed text in the popup list can be different than the actual code.
made the popup list customizable so user can use his own widget using autocompleteListBuilder.
also moved these variables (caretPadding, autocompletePopupMaxHeight, autocompletePopupMaxWidth) to be fields in CodeEditor widget
Hi, Here are two commits:
I made
Autocompleter
abstract class and renamed default one toDefaultAutocompleter
, so user can create its own implementationSuggestionItem
to be more customizable than justString
, in some cases the displayed text in the popup list can be different than the actual code.made the popup list customizable so user can use his own widget using
autocompleteListBuilder
.caretPadding
,autocompletePopupMaxHeight
,autocompletePopupMaxWidth
) to be fields inCodeEditor
widget