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

Update field.dart to fix bug when the field type is inferred and not explicitly set #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thejobsmarket
Copy link

final scaffoldKey = GlobalKey();
The above example code gave a _type not initialised exception because the type is an inferred type. By making _type into String? _type, the problem is solved.

This example gave a _type not initialised exception because it is an inferred type. By making _type into String? _type, the problem is solved:
final scaffoldKey = GlobalKey<ScaffoldState>();
Copy link

codesandbox bot commented Jul 14, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Jul 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flutter-vscode-flutter-preview-webview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2024 7:26am

@softmarshmallow
Copy link
Member

Hi. can you explain the issue and the PR in more depth?

Thank you for your contribution. :)

@thejobsmarket
Copy link
Author

thejobsmarket commented Jul 17, 2024 via email

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.

2 participants