@@ -57,7 +57,7 @@ class RawEditor extends StatefulWidget {
5757 this .enableInteractiveSelection,
5858 this .scrollPhysics,
5959 this .embedBuilder,
60- this .styleBuilder ,
60+ this .customStyleBuilder ,
6161 ) : assert (maxHeight == null || maxHeight > 0 , 'maxHeight cannot be null' ),
6262 assert (minHeight == null || minHeight >= 0 , 'minHeight cannot be null' ),
6363 assert (maxHeight == null || minHeight == null || maxHeight >= minHeight,
@@ -90,7 +90,7 @@ class RawEditor extends StatefulWidget {
9090 final bool enableInteractiveSelection;
9191 final ScrollPhysics ? scrollPhysics;
9292 final EmbedBuilder embedBuilder;
93- final StyleBuilder ? styleBuilder ;
93+ final CustomStyleBuilder ? customStyleBuilder ;
9494 @override
9595 State <StatefulWidget > createState () => RawEditorState ();
9696}
@@ -249,7 +249,7 @@ class RawEditorState extends EditorState
249249 indentLevelCounts: indentLevelCounts,
250250 onCheckboxTap: _handleCheckboxTap,
251251 readOnly: widget.readOnly,
252- styleBuilder : widget.styleBuilder );
252+ customStyleBuilder : widget.customStyleBuilder );
253253 result.add (editableTextBlock);
254254 } else {
255255 throw StateError ('Unreachable.' );
@@ -264,7 +264,7 @@ class RawEditorState extends EditorState
264264 line: node,
265265 textDirection: _textDirection,
266266 embedBuilder: widget.embedBuilder,
267- styleBuilder : widget.styleBuilder ,
267+ customStyleBuilder : widget.customStyleBuilder ,
268268 styles: _styles! ,
269269 readOnly: widget.readOnly,
270270 );
0 commit comments