diff --git a/CHANGELOG.md b/CHANGELOG.md index fdb8126e..4c56a6c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.3.4 + +- Added default height to `defaultTextStyle` (https://github.com/akvelon/flutter-code-editor/pull/297). +- Added `disposed` and `mounted` checks to `CodeField` and `CodeController` (https://github.com/akvelon/flutter-code-editor/pull/298). +- Added `UndoHistoryController` to `CodeField` (https://github.com/akvelon/flutter-code-editor/pull/302). + ## 0.3.3 - Added `smartDashesType` and `smartQuotesType` to `CodeField` (https://github.com/akvelon/flutter-code-editor/pull/278). diff --git a/lib/src/code_field/code_field.dart b/lib/src/code_field/code_field.dart index cb5afac9..efd45057 100644 --- a/lib/src/code_field/code_field.dart +++ b/lib/src/code_field/code_field.dart @@ -266,7 +266,7 @@ class _CodeFieldState extends State { disableSpellCheckIfWeb(); WidgetsBinding.instance.addPostFrameCallback((_) { - if(!mounted){ + if (!mounted) { return; } final double width = _codeFieldKey.currentContext!.size!.width; @@ -320,7 +320,7 @@ class _CodeFieldState extends State { void rebuild() { setState(() { WidgetsBinding.instance.addPostFrameCallback((_) { - if(!mounted){ + if (!mounted) { return; } // For some reason _codeFieldKey.currentContext is null in tests diff --git a/pubspec.yaml b/pubspec.yaml index 4453c681..e2988c0b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_code_editor description: A customizable code field supporting syntax highlighting and code folding. -version: 0.3.3 +version: 0.3.4 repository: https://github.com/akvelon/flutter-code-editor environment: