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

Using tables #10

Closed
FickleLife opened this issue Jan 26, 2021 · 3 comments
Closed

Using tables #10

FickleLife opened this issue Jan 26, 2021 · 3 comments

Comments

@FickleLife
Copy link

Is it at all possible to use / hack tables into Flutter from contentful using JSON plugins like https://github.com/AnalogMemory/contentful-tables ?

Looking at the documentation, I could pass a custom renderer for the BLOCKS.JSON.value nodeType - would that work?

@localpcguy
Copy link
Collaborator

I'm not familiar with contentful-tables or the preceding repos it was forked from, but it looks like that is a standard content type, not something embedded in the Rich Text output. This is a parser for parsing the Rich Text output JSON into Flutter widgets.

I don't know what the output JSON from contentful-tables looks like to be able to know if this would be able to parse it, but if it follows the JSON pattern for Rich Text, then it may be possible to parse it into Widgets using this. And if that's the case, and it's a type that fits into the BLOCK, then in theory you could give it a custom renderer and do what you want.

But that is a LOT of IFs and "I don't knows" in this answer.

@FickleLife
Copy link
Author

Thanks, I'll explore it a bit today and post my findings.

@localpcguy
Copy link
Collaborator

closing due to inactivity

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

2 participants