Skip to content

Commit 3974d3a

Browse files
Typo Fix: Rename ContactsListPage to ContactListsPage (#13091)
Source url: https://docs.flutter.dev/learn/pathway/tutorial/slivers **Page**: Flutter Docs **Tutorial Scope**: Flutter UI 102 **Global Lesson number**: 15 - _Advanced scrolling and slivers_ **Lesson Section**: 04 - _Create Advanced scrolling for contacts_ **Problem Description** In the first placeholder code snippet of the specified lesson section, there is a class misnomer (`ContactsListPage`) in the given else block: `else { return const ContactsListPage(listId: 0); // New, temporary }` The typo results in an error in the `adaptive_layout.dart` file during that section of the tutorial. This commit corrects the class name to ContactListsPage, defined in the `lib/data/screens/contacts.dart` file.
1 parent 37d7322 commit 3974d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/pathway/tutorial/slivers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class _AdaptiveLayoutState extends State<AdaptiveLayout> {
304304
if (isLargeScreen) {
305305
return _buildLargeScreenLayout();
306306
} else {
307-
return const ContactsListPage(listId: 0); // New, temporary
307+
return const ContactListsPage(listId: 0); // New, temporary
308308
}
309309
},
310310
);

0 commit comments

Comments
 (0)