From f6b911d89eccd3a155d8d061cc9e8efa6a1d5627 Mon Sep 17 00:00:00 2001 From: Darkhan Nausharipov Date: Sun, 27 Jul 2025 16:10:47 +0500 Subject: [PATCH 1/2] bump version to v0.3.4 --- CHANGELOG.md | 6 ++++++ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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/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: From 0339f79e7463f5bf7e12f5ee897ee7c738836865 Mon Sep 17 00:00:00 2001 From: Darkhan Nausharipov Date: Mon, 28 Jul 2025 14:33:25 +0500 Subject: [PATCH 2/2] dart format --- lib/src/code_field/code_field.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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