Reformat code

pull/531/head
X Code 3 years ago
parent 156e0d71df
commit d1fa59a759
  1. 70
      lib/src/widgets/raw_editor.dart

@ -30,41 +30,41 @@ import 'text_line.dart';
import 'text_selection.dart'; import 'text_selection.dart';
class RawEditor extends StatefulWidget { class RawEditor extends StatefulWidget {
const RawEditor({ const RawEditor(
required this.controller, {required this.controller,
required this.focusNode, required this.focusNode,
required this.scrollController, required this.scrollController,
required this.scrollBottomInset, required this.scrollBottomInset,
required this.cursorStyle, required this.cursorStyle,
required this.selectionColor, required this.selectionColor,
required this.selectionCtrls, required this.selectionCtrls,
Key? key, Key? key,
this.scrollable = true, this.scrollable = true,
this.padding = EdgeInsets.zero, this.padding = EdgeInsets.zero,
this.readOnly = false, this.readOnly = false,
this.placeholder, this.placeholder,
this.onLaunchUrl, this.onLaunchUrl,
this.toolbarOptions = const ToolbarOptions( this.toolbarOptions = const ToolbarOptions(
copy: true, copy: true,
cut: true, cut: true,
paste: true, paste: true,
selectAll: true, selectAll: true,
), ),
this.showSelectionHandles = false, this.showSelectionHandles = false,
bool? showCursor, bool? showCursor,
this.textCapitalization = TextCapitalization.none, this.textCapitalization = TextCapitalization.none,
this.maxHeight, this.maxHeight,
this.minHeight, this.minHeight,
this.customStyles, this.customStyles,
this.expands = false, this.expands = false,
this.autoFocus = false, this.autoFocus = false,
this.keyboardAppearance = Brightness.light, this.keyboardAppearance = Brightness.light,
this.enableInteractiveSelection = true, this.enableInteractiveSelection = true,
this.scrollPhysics, this.scrollPhysics,
this.embedBuilder = defaultEmbedBuilder, this.embedBuilder = defaultEmbedBuilder,
this.customStyleBuilder, this.customStyleBuilder,
this.floatingCursorDisabled = false this.floatingCursorDisabled = false})
}) : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'),
assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'), assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'),
assert(maxHeight == null || minHeight == null || maxHeight >= minHeight, assert(maxHeight == null || minHeight == null || maxHeight >= minHeight,
'maxHeight cannot be null'), 'maxHeight cannot be null'),

Loading…
Cancel
Save