Skip to content

Commit

Permalink
Allowing ParagraphComponentBuilder to return any widget type from cre…
Browse files Browse the repository at this point in the history
…ateComponent
  • Loading branch information
jmatth committed Jul 24, 2023
1 parent 848d4d0 commit f15859f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions super_editor/lib/src/default_editor/paragraph.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:attributed_text/attributed_text.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:super_editor/src/core/document.dart';
import 'package:super_editor/src/core/document_composer.dart';
import 'package:super_editor/src/core/document_selection.dart';
Expand Down Expand Up @@ -72,7 +72,7 @@ class ParagraphComponentBuilder implements ComponentBuilder {
}

@override
TextComponent? createComponent(
Widget? createComponent(
SingleColumnDocumentComponentContext componentContext, SingleColumnLayoutComponentViewModel componentViewModel) {
if (componentViewModel is! ParagraphComponentViewModel) {
return null;
Expand Down

0 comments on commit f15859f

Please sign in to comment.