Releases: ThomasGysemans/code_editor
v2.0.2
[2.0.2] - July 31, 2023
The biggest update so far, 3 years after the first commit!
- Fix a lot of typo
- Fix a glitch (the text field would not have the same value as the current file)
- Add important note on README
- Huge refactoring of the code base
- Add a lot of breaking changes
- Add a new way to set individual files as
readonly - Add undo/redo buttons
- Add formatters (the editor is able to auto-format HTML code when the user saves modifications)
- Add custom formatters (the dev can manipulate the new value of the TextField before saving it)
- Change signature of
onSubmitcallback. - Improve comments for a better documentation in the dev's code directly
- Set as compatible with dart 3.0
- Now works with SDK
>=2.12.0up to<4.0.0 - Improve null safety
- Removed ability to pass in custom
TextEditingControllertoCodeEditor
1.3.1
- Adds the ability to move the "edit" button at the top
Also thanks to 1.3.0:
- Ability to pass in custom
TextEditingControllerto theCodeEditor.
Thanks to the contributors
1.2.0
- null-safety thanks to contributors
- Updates the dependencies to their latest version.
1.1.1
- dartfmt
- See [https://dart.dev/tools/dart-format]
1.1.0
- Bug fixes.
- Fix typo.
- Better compatibility with the latest version of Flutter (the deprecated widgets have been removed).
- Reorganisation of
EditorModelStyleOptions.dart. - Updates the dependencies to their latest version.
1.0.1
Fix typo.
1.0.0
This is a big version !
Here are all the updates :
-
There was a bug before : you could'nt change the content of a file outside the CodeEditor Widget, I mean in a SetState() function. Now, it's possible.
-
You can choose to disable the navigation bar with the new parameter : disableNavigationbar (by default set to false). If you hide the navigation bar, only the first file will be displayed.
-
WARNING : if you move your project to this version, you will need to modify a little thing : EditorModel has no positional arguments anymore, so to define your files, you will have to name the parameter to "files". Check the Readme section.
-
Now, there is no required parameters anymore. Everything has a default value to bring more flexibility to developers. Check the Readme section for more info.
-
code_editor does not use Provider package anymore.
-
The Readme section is more readable and more accurate.
Enjoy Coding !
0.2.0
From now on, when the code overflows the editor, the scroll is better.
- New parameter inside EditorModelStyleOptions : TextStyle textStyleOfTextField, the style of the text inside the text field.
code_editor is much better since its initial release :)
0.1.3
The CodeEditor Widget doesn't have margin property anymore.
0.1.2
onSubmit parameter is not required anynome inside the CodeEditor Widget.
-
A new parameter : bool edit, by default its value is true. Set it to false if you want to disable file editing. Use it inside the CodeEditor Widget.
-
New parameter inside EditorModelStyleOptions : double fontSizeOfFilename, the font size of the files' names.
-
The documentation in the source code is much better !