Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/learn/pathway/tutorial/listenable-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ArticleView extends StatelessWidget {
// The summary must be non-null in this switch case.
(false, Summary summary, null) => ArticlePage(
summary: summary,
onPressed: viewModel.getRandomArticleSummary,
nextArticleCallback: viewModel.getRandomArticleSummary,
),
};
},
Expand Down Expand Up @@ -244,11 +244,11 @@ class ArticlePage extends StatelessWidget {
const ArticlePage({
super.key,
required this.summary,
required this.onPressed,
required this.nextArticleCallback,
});

final Summary summary;
final VoidCallback onPressed;
final VoidCallback nextArticleCallback;

@override
Widget build(BuildContext context) {
Expand Down