ui/portable_text_widget library
Classes
- PortableText
- A widget that renders a list of PortableBlockItems. This widget is the main entry point for rendering Portable Text content. It is responsible for rendering the entire content of a Portable Text document, including all blocks and marks. It relies on the PortableTextConfig to determine the visual representation of each block.
Functions
-
defaultListBuilder(
BuildContext context, {required List< PortableBlockItem> blocks, bool isPrimary = false, bool shrinkwrap = true, ScrollPhysics scrollPhysics = const NeverScrollableScrollPhysics()}) → Widget - Default container-builder for PortableText blocks. It uses a ListView.builder to render the blocks.
Typedefs
-
BlockListBuilder
= Widget Function(BuildContext, List<
PortableBlockItem> )