Closed chenna8464 closed 2 months ago
Good point. However these are dictated by the PortableText specification and there is no option to extend the list item type. One option is to expose custom renderer for the particular list item
With this commit, we now have the ability to customize the bullet renderer by passing it as an option to PortableTextConfig
. You can see it in this commit: https://github.com/vyuh-tech/vyuh/commit/9b2ea4c3ec8d71f103dcfecc881437832f0a48c5
A new version has been published as well that includes this capability: https://pub.dev/packages/flutter_sanity_portable_text/changelog
currently, we have these types
enum ListItemType { bullet, square, number } if someone wants to add their own widget here, they can't