|
|
|
@ -30,8 +30,8 @@ import 'text_line.dart'; |
|
|
|
|
import 'text_selection.dart'; |
|
|
|
|
|
|
|
|
|
class RawEditor extends StatefulWidget { |
|
|
|
|
const RawEditor({ |
|
|
|
|
required this.controller, |
|
|
|
|
const RawEditor( |
|
|
|
|
{required this.controller, |
|
|
|
|
required this.focusNode, |
|
|
|
|
required this.scrollController, |
|
|
|
|
required this.scrollBottomInset, |
|
|
|
@ -63,8 +63,8 @@ class RawEditor extends StatefulWidget { |
|
|
|
|
this.scrollPhysics, |
|
|
|
|
this.embedBuilder = defaultEmbedBuilder, |
|
|
|
|
this.customStyleBuilder, |
|
|
|
|
this.floatingCursorDisabled = false |
|
|
|
|
}) : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), |
|
|
|
|
this.floatingCursorDisabled = false}) |
|
|
|
|
: assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), |
|
|
|
|
assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'), |
|
|
|
|
assert(maxHeight == null || minHeight == null || maxHeight >= minHeight, |
|
|
|
|
'maxHeight cannot be null'), |
|
|
|
|