The single example project contains multiple main.dart
files:
https://github.com/akvelon/flutter-code-editor/tree/main/example
Run any of them for the specific example app.
This is the minimal example that uses CodeController
with an ordinary TextField
.
Run this: https://github.com/akvelon/flutter-code-editor/tree/main/example/lib/01.minimal
CodeField
widget adds a gutter, code folding, and basic autocompletion.
Run this: https://github.com/akvelon/flutter-code-editor/tree/main/example/lib/02.code_field
This example shows how to change language and theme dynamically.
Run this: https://github.com/akvelon/flutter-code-editor/tree/main/example/lib/03.change_language_theme