@@ -174,6 +174,8 @@ class CodeEditor extends StatefulWidget {
174
174
this .shortcutOverrideActions,
175
175
this .sperator,
176
176
this .border,
177
+ this .borderRadius,
178
+ this .clipBehavior = Clip .none,
177
179
this .readOnly,
178
180
this .showCursorWhenReadOnly,
179
181
this .wordWrap,
@@ -237,6 +239,17 @@ class CodeEditor extends StatefulWidget {
237
239
/// The border of the editor.
238
240
final Border ? border;
239
241
242
+ /// The radius of the editor's border corners.
243
+ ///
244
+ /// This defines how rounded the corners of the editor's border will appear.
245
+ ///
246
+ /// If null, the corners will not be rounded.
247
+ final BorderRadius ? borderRadius;
248
+
249
+
250
+ /// How the content should be clipped if it overflows the editor's bounds.
251
+ final Clip clipBehavior;
252
+
240
253
/// Whether the text can be changed.
241
254
///
242
255
/// When this is set to true, the text cannot be modified
@@ -460,6 +473,8 @@ class _CodeEditorState extends State<CodeEditor> {
460
473
showCursorWhenReadOnly: widget.showCursorWhenReadOnly ?? true ,
461
474
sperator: widget.sperator,
462
475
border: widget.border,
476
+ borderRadius: widget.borderRadius,
477
+ clipBehavior: widget.clipBehavior,
463
478
onChanged: widget.onChanged,
464
479
focusNode: _focusNode,
465
480
padding: (widget.padding ?? _kDefaultPadding).add (EdgeInsets .only (
0 commit comments