Skip to content

Commit

Permalink
[chore] Updates README, CHANGELOG, and versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Luckey-Elijah committed Jun 26, 2021
1 parent 71983c2 commit c247adf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.3.0] - June 26, 2021

- Ability to pass in custom `TextEditingController` to the `CodeEditor`.

## [1.2.0] - June 15, 2021

+ null-safety thanks to contributors
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class HomePage extends StatelessWidget {
),
);
// A custom TextEditingController.
final myController = TextEditingController(text: 'hello!');
return Scaffold(
appBar: AppBar(title: Text("code_editor example")),
body: SingleChildScrollView( // /!\ important because of the telephone keypad which causes a "RenderFlex overflowed by x pixels on the bottom" error
Expand All @@ -96,6 +99,7 @@ class HomePage extends StatelessWidget {
edit: false, // can edit the files ? by default true
disableNavigationbar: false, // hide the navigation bar ? by default false
onSubmit: (String language, String value) {}, // when the user confirms changes in one of the files
textEditingController: myController, // Provide an optional, custom TextEditingController.
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: code_editor
description: A code editor (dart, js, html, ...) for Flutter with syntax highlighting and custom theme.
version: 1.2.0
version: 1.3.0
homepage: https://github.com/CodoPixel/code_editor

environment:
Expand Down

0 comments on commit c247adf

Please sign in to comment.