Skip to content

Releases: ThomasGysemans/code_editor

v2.0.2

31 Jul 19:38

Choose a tag to compare

[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 onSubmit callback.
  • 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.0 up to <4.0.0
  • Improve null safety
  • Removed ability to pass in custom TextEditingController to CodeEditor

1.3.1

27 Aug 13:20

Choose a tag to compare

  • Adds the ability to move the "edit" button at the top

Also thanks to 1.3.0:

  • Ability to pass in custom TextEditingController to the CodeEditor.

Thanks to the contributors

1.2.0

15 Jun 08:54

Choose a tag to compare

  • null-safety thanks to contributors
  • Updates the dependencies to their latest version.

1.1.1

24 Apr 18:02

Choose a tag to compare

  • dartfmt
  • See [https://dart.dev/tools/dart-format]

1.1.0

24 Apr 17:45

Choose a tag to compare

  • 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

10 Aug 13:00

Choose a tag to compare

Fix typo.

1.0.0

10 Aug 12:52

Choose a tag to compare

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

07 Aug 09:51

Choose a tag to compare

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

07 Aug 09:13

Choose a tag to compare

The CodeEditor Widget doesn't have margin property anymore.

0.1.2

06 Aug 18:14

Choose a tag to compare

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 !