aws-amplify / aws-amplify/amplify-codegen
Compile Error when using non camelCase field names in flutter modelgen
- Dominant language
- TypeScript
- Stars
- 59
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
### Which Specific Feature is your question related to?
Amplify API / Data Model
### Question
I have created a data model using the Amplify Studio and I deployed those changes to my local instance. I am using Andriod Studio to code my app. However, when I download my data model, I am getting an error on one of the dart files due to the relationship between tables. The error shows up as "The instance member 'UserDevices' can't be accessed in an initializer."
The file is referencing the 'ModelProvider.dart' though it showing as greyed out like its' not being used.
I have two tables, one that stores the definition of the device (e.g., it's ID and IOT ARN) and a second that is storing status messages and other data about the device with a 1:1 dependency on the device definition table.
I haven't been able to resolve why this error is happening.
Contributor guide
Assessment
This issue has not been assessed yet.