Skip to content

docs: fix class names that don't match the example code - #4843

Open
meliharik wants to merge 1 commit into
felangel:masterfrom
meliharik:docs-fix-mismatched-class-names
Open

docs: fix class names that don't match the example code#4843
meliharik wants to merge 1 commit into
felangel:masterfrom
meliharik:docs-fix-mismatched-class-names

Conversation

@meliharik

Copy link
Copy Markdown

Fixes #4842

Two class names in the docs didn't match the code they describe. Both verified against examples/flutter_todos.

AuthentictionBlocAuthenticationBloc

Missing an "a" at tutorials/flutter-login.mdx:323. The same file spells it correctly 16 other times. Also fixed in the it, ru and tr copies of that page, which inherited it.

EditTodosPage / EditTodosBloc / EditTodosView → singular

The example declares the singular forms:

symbol declared at
EditTodoPage examples/flutter_todos/lib/edit_todo/view/edit_todo_page.dart:9
EditTodoView same file, line 37
EditTodoBloc examples/flutter_todos/lib/edit_todo/bloc/edit_todo_bloc.dart:8

The tutorial already used the correct singular name at line 345 and in the #### EditTodoPage heading, but the plural in the paragraphs below it and in the widget-tree snippet. TodosOverviewPageTreeSnippet and StatsPageTreeSnippet both match their real classes, so this snippet was the only one out of step.

I left the component's filename (EditTodosPageTreeSnippet.astro) alone and only corrected its contents, so all seven imports still resolve — renaming the file seemed like unnecessary churn, but say the word if you'd prefer it renamed for consistency.

Docs only. Identifier corrections are language-independent, which is why the translated pages are included.

@meliharik
meliharik requested a review from felangel as a code owner July 21, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: two class names don't match the example code

1 participant