Gen2 Flutter Customize Secondary Indexes page examples in Typescript not Dart
Describe the content issue:
The usage examples for Gen2 Flutter documentation on Customize Secondary Indexes page are in typescript not Dart.
URL page where content issue is: https://docs.amplify.aws/flutter/build-a-backend/data/data-modeling/secondary-index/
Hi @matt-prinold-grazinga thanks for reaching out. With Amplify Gen2, setting up the data resources and modeling the schema are done by TypeScript. That's a separate process from write your Flutter app using Dart. Therefore the documentation contains correct examples.
@HuiSF Please actually look at the documentation page i shared before responding with incorrect information, the examples i'm referring to clearly state src/App.tsx files. They are example client query's, not amplify configuration examples so given these are in the flutter amplify documentation they should be written in dart.
Oh good find, thanks for pointing this out @matt-prinold-grazinga, IIRC, Amplify Flutter doesn't have the corresponding automatically generated list<Model>By<IndexField> methods. I will mark this a bug and look into how to fix it.
It looks like the documentation was updated for Flutter but this ticket was never closed.