genui 0.6.0
genui: ^0.6.0 copied to clipboard
Generates and displays generative user interfaces (GenUI) in Flutter using AI.
genui Changelog #
0.6.0 #
- BREAKING: Renamed
GenUiManagertoA2uiMessageProcessorto better reflect its role. - BREAKING:
A2uiMessageProcessornow accepts anIterable<Catalog>viacatalogsinstead of a singlecatalog. - BREAKING: Removed
GenUiConfigurationandActionsConfig. - BREAKING: Removed
GenUiHost.catalogin favor ofGenUiHost.catalogs. - Improved surface rendering logic to cache components before rendering.
- Updated README sample code to reflect current
FirebaseAiContentGeneratorAPI (addedcatalogparameter and replacedtoolswithadditionalTools). - Feature:
GenUiManagernow supports multiple catalogs by accepting anIterable<Catalog>in its constructor. - Feature:
A2uiMessageProcessornow supports multiple catalogs by accepting anIterable<Catalog>in its constructor. - Feature:
catalogIdproperty added toUiDefinitionto specify which catalog a UI surface should use. - Refactor: Moved
standardCatalogIdconstant fromcore_catalog.darttoprimitives/constants.dartfor better organization and accessibility. - Fix:
MultipleChoicewidget now correctly handlesmaxAllowedSelectionswhen provided as adoublein JSON, preventing type cast errors. - Fix: The
Textcatalog item now respects the ambientDefaultTextStyle, resolving contrast issues where, for example, text inside a dark purple primaryButtonwould be black instead of white.
0.5.1 #
- Homepage URL was updated.
- Deprecated
flutter_markdownpackage was replaced withflutter_markdown_plus.
0.5.0 #
- Initial published release.
0.4.0 #
- BREAKING: Replaced
AiClientinterface withContentGenerator.ContentGeneratoruses a stream-based API (a2uiMessageStream,textResponseStream,errorStream) for asynchronous communication of AI-generated UI commands, text, and errors. - BREAKING:
GenUiConversationnow requires aContentGeneratorinstance instead of anAiClient. - Feature: Introduced
A2uiMessagesealed class (BeginRendering,SurfaceUpdate,DataModelUpdate,SurfaceDeletion) to represent AI-to-UI commands, emitted fromContentGenerator.a2uiMessageStream. - Feature: Added
FakeContentGeneratorfor testing purposes, replacingFakeAiClient. - Feature: Added
configureGenUiLoggingfunction andgenUiLoggerinstance for configurable package logging. - Feature: Added
JsonMaptype alias inprimitives/simple_items.dart. - Feature: Added
DirectCallHostand related utilities infacade/direct_call_integrationfor more direct AI model interactions. - Refactor:
GenUiConversationnow internally subscribes toContentGeneratorstreams and uses callbacks (onSurfaceAdded,onSurfaceUpdated,onSurfaceDeleted,onTextResponse,onError) to notify the application of events. - Fix: Improved error handling and reporting through the
ContentGenerator.errorStreamandContentGeneratorErrorclass.
0.2.0 #
- BREAKING: Replaced
ElevatedButtonwith a more genericButtoncomponent. - BREAKING: Removed
CheckboxGroupandRadioGroupfrom the core catalog. TheMultipleChoiceorCheckBoxwidgets can be used as replacements. - Feature: Added an
obscuredproperty toTextInputChipto allow for password style inputs. - Feature: Added many new components to the core catalog:
AudioPlayer(placeholder),Button,Card,CheckBox,DateTimeInput,Divider,Heading,List,Modal,MultipleChoice,Row,Slider,Tabs, andVideo(placeholder). - Fix: Corrected the action key from
actionNametonameinTrailheadandTravelCarousel. - Fix: Corrected the image property from
locationtourlinTravelCarousel.
0.1.0 #
- Initial commit