Skip to content

Commit cc186f0

Browse files
angelosilvestrematthew-carroll
authored andcommitted
[Infrastructure] Fix demo site compilation issues (Resolves #2200) (#2206)
1 parent 87b6221 commit cc186f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

website/lib/homepage/featured_editor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class _FeaturedEditorState extends State<FeaturedEditor> {
5252
_composer = MutableDocumentComposer(
5353
initialSelection: DocumentSelection.collapsed(
5454
position: DocumentPosition(
55-
nodeId: _doc.nodes.last.id, // Place caret at end of document
56-
nodePosition: (_doc.nodes.last as TextNode).endPosition,
55+
nodeId: _doc.last.id, // Place caret at end of document
56+
nodePosition: (_doc.last as TextNode).endPosition,
5757
),
5858
),
5959
);

website/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ dependencies:
1616
super_text_layout: ^0.1.0
1717
url_launcher:
1818

19+
dependency_overrides:
20+
super_text_layout:
21+
path: ../super_text_layout
22+
1923
dev_dependencies:
2024
flutter_test:
2125
sdk: flutter

0 commit comments

Comments
 (0)