diff --git a/lib/src/widgets/text_block.dart b/lib/src/widgets/text_block.dart index 370c780f..3ab0f439 100644 --- a/lib/src/widgets/text_block.dart +++ b/lib/src/widgets/text_block.dart @@ -93,13 +93,14 @@ class EditableTextBlock extends StatelessWidget { final defaultStyles = QuillStyles.getStyles(context, false); return _EditableBlock( - block, - textDirection, - verticalSpacing as Tuple2, - scrollBottomInset, - _getDecorationForBlock(block, defaultStyles) ?? const BoxDecoration(), - contentPadding, - _buildChildren(context, indentLevelCounts)); + block: block, + textDirection: textDirection, + padding: verticalSpacing as Tuple2, + scrollBottomInset: scrollBottomInset, + decoration: _getDecorationForBlock(block, defaultStyles) ?? + const BoxDecoration(), + contentPadding: contentPadding, + children: _buildChildren(context, indentLevelCounts)); } BoxDecoration? _getDecorationForBlock( @@ -576,14 +577,15 @@ class RenderEditableTextBlock extends RenderEditableContainerBox class _EditableBlock extends MultiChildRenderObjectWidget { _EditableBlock( - this.block, - this.textDirection, - this.padding, - this.scrollBottomInset, - this.decoration, - this.contentPadding, - List children) - : super(children: children); + {required this.block, + required this.textDirection, + required this.padding, + required this.scrollBottomInset, + required this.decoration, + required this.contentPadding, + required List children, + Key? key}) + : super(key: key, children: children); final Block block; final TextDirection textDirection;