Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoteDetail' isn't defined for the class 'NoteListState'. #4

Open
ghost opened this issue Aug 25, 2019 · 1 comment
Open

'NoteDetail' isn't defined for the class 'NoteListState'. #4

ghost opened this issue Aug 25, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 25, 2019

I am getting this error:
'NoteDetail' isn't defined for the class 'NoteListState'.

  • 'NoteListState' is from 'package:notes/screens/note_list.dart' ('lib/screens/note_list.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'NoteDetail'.

The function where this error originates is this one:
void navigateToDetail(String title) {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return NoteDetail(title);
}));
}
}

@shabekpsr
Copy link

I can't run the code. due to context error. I cant understand this context. please explain to me what is context. why it disturbed me always.

Capture

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

No branches or pull requests

1 participant