File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.2.23
2
+
3
+ * Added ` CodeController.readOnly ` .
4
+
1
5
## 0.2.22
2
6
3
7
* Fixed most of the search bugs (Issue [ 228] ( https://github.com/akvelon/flutter-code-editor/issues/228 ) ).
4
- * Added ` CodeController.readOnly ` .
5
8
6
9
## 0.2.21
7
10
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class CodeController extends TextEditingController {
93
93
/// Makes the text un-editable, but allows to set the full text.
94
94
/// Focusing and moving the selection inside of a [CodeField] will
95
95
/// still be possible.
96
- final bool readonly ;
96
+ final bool readOnly ;
97
97
98
98
String get languageId => _languageId;
99
99
@@ -147,7 +147,7 @@ class CodeController extends TextEditingController {
147
147
Map <String , TextStyle >? theme,
148
148
this .analysisResult = const AnalysisResult (issues: []),
149
149
this .patternMap,
150
- this .readonly = false ,
150
+ this .readOnly = false ,
151
151
this .stringMap,
152
152
this .params = const EditorParams (),
153
153
this .modifiers = const [
@@ -654,7 +654,7 @@ class CodeController extends TextEditingController {
654
654
void modifySelectedLines (
655
655
String Function (String line) modifierCallback,
656
656
) {
657
- if (readonly ) {
657
+ if (readOnly ) {
658
658
return ;
659
659
}
660
660
@@ -733,7 +733,7 @@ class CodeController extends TextEditingController {
733
733
Code get code => _code;
734
734
735
735
CodeEditResult ? _getEditResultNotBreakingReadOnly (TextEditingValue newValue) {
736
- if (readonly ) {
736
+ if (readOnly ) {
737
737
return null ;
738
738
}
739
739
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class CodeField extends StatefulWidget {
151
151
/// {@macro flutter.widgets.editableText.readOnly}
152
152
///
153
153
/// This is just passed as a parameter to a [TextField] .
154
- /// See also [CodeController.readonly ] .
154
+ /// See also [CodeController.readOnly ] .
155
155
final bool readOnly;
156
156
157
157
final Color ? background;
Original file line number Diff line number Diff line change 1
1
name : flutter_code_editor
2
2
description : A customizable code field supporting syntax highlighting and code folding.
3
- version : 0.2.22
3
+ version : 0.2.23
4
4
repository : https://github.com/akvelon/flutter-code-editor
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import 'package:flutter_code_editor/flutter_code_editor.dart';
3
3
import 'package:flutter_test/flutter_test.dart' ;
4
4
5
5
void main () {
6
- group ('CodeController.readonly ' , () {
6
+ group ('CodeController.readOnly ' , () {
7
7
test ('Setting readonly restricts modification of text' , () {
8
8
const initialText = 'Aaa\n Aaaa' ;
9
9
final controller = CodeController (
10
10
text: initialText,
11
- readonly : true ,
11
+ readOnly : true ,
12
12
);
13
13
14
14
controller.value = const TextEditingValue (
You can’t perform that action at this time.
0 commit comments