Skip to content

Commit

Permalink
[SuperEditor][Example] - Fix crash in spelling error decorations demo (
Browse files Browse the repository at this point in the history
…Resolves #2374) (#2375)
  • Loading branch information
angelosilvestre authored and matthew-carroll committed Oct 15, 2024
1 parent d73f68c commit 16ec5bb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ class _SpellingErrorDecorationsDemoState extends State<SpellingErrorDecorationsD
Widget build(BuildContext context) {
return InTheLabScaffold(
content: Center(
child: IntrinsicHeight(
child: _buildEditor(),
),
child: _buildEditor(),
),
supplemental: _buildControlPanel(),
);
Expand All @@ -59,6 +57,7 @@ class _SpellingErrorDecorationsDemoState extends State<SpellingErrorDecorationsD
Widget _buildEditor() {
return SuperEditor(
editor: _editor,
shrinkWrap: true,
componentBuilders: [
// When `_decoration` is non-null, we apply it directly to our own
// custom component to show direct application. When it's `null`,
Expand Down

0 comments on commit 16ec5bb

Please sign in to comment.