File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ class CodeField extends StatefulWidget {
136
136
/// language highlight, themeing and modifiers.
137
137
final CodeController controller;
138
138
139
+ /// An UndoHistoryController instance
140
+ /// to control TextField history.
141
+ final UndoHistoryController ? undoController;
142
+
139
143
@Deprecated ('Use gutterStyle instead' )
140
144
final GutterStyle lineNumberStyle;
141
145
@@ -180,6 +184,7 @@ class CodeField extends StatefulWidget {
180
184
const CodeField ({
181
185
super .key,
182
186
required this .controller,
187
+ this .undoController,
183
188
this .minLines,
184
189
this .maxLines,
185
190
this .expands = false ,
@@ -417,6 +422,7 @@ class _CodeFieldState extends State<CodeField> {
417
422
smartDashesType: widget.smartDashesType,
418
423
smartQuotesType: widget.smartQuotesType,
419
424
controller: widget.controller,
425
+ undoController: widget.undoController,
420
426
minLines: widget.minLines,
421
427
maxLines: widget.maxLines,
422
428
expands: widget.expands,
You can’t perform that action at this time.
0 commit comments