flutter_wordpress icon indicating copy to clipboard operation
flutter_wordpress copied to clipboard

content.raw is null?

Open bbence84 opened this issue 3 years ago • 2 comments

I am trying to use this library with this: https://pub.dev/packages/flutter_wordpress_content. But content.raw is always null. content.rendered is fine. Any reason for this? Thanks for the otherwise awesome library! :)

bbence84 avatar Dec 01 '20 22:12 bbence84

Ok, found the issue: lib/schemas/content.dart: raw isn't passed and mapped in the constructor. Any particular reason for that?

bbence84 avatar Dec 01 '20 22:12 bbence84

Well, I managed to solve my issue using the flutter_widget_from_html plugin, it renders the content.rendered nicely. Still, maybe it would be better to use the dedicated flutter raw format, but I am not sure which one would be better.

bbence84 avatar Dec 02 '20 06:12 bbence84