genui_button 0.0.6 copy "genui_button: ^0.0.6" to clipboard
genui_button: ^0.0.6 copied to clipboard

A GenUI compatible button widget package. Provides a GenUIButton catalog item for GenUI agents to produce interactive UI.

0.0.6 #

  • Refactored Architecture: Split genui_button.dart logic into catalog_item.dart, schema.dart, and utils.dart for better maintainability.
  • Modern UI Elements: Added isLoading property for rendering a loading spinner state seamlessly, and gradientColors to easily add linear gradients.
  • Granular Desktop Events: Included hover and double-click actions with onHoverEnterAction, onHoverExitAction, and onDoubleClickAction.
  • Execution Fixes: Properly isolated debouncers to run before evaluating haptics and confirmation dialog actions.

0.0.5 #

  • Enhanced Confirmation: Added isEnabled flag to explicitly toggle confirmation dialogs.
  • Custom Action Strings: Added onConfirmAction and onCancelAction to allow developers to trigger specific events for dialog interactions.

0.0.4 #

  • Realistic Action Handling: Added confirmation dialogs, debounceMs, and onLongPressAction.
  • Context Awareness: Added contextMapping to resolve action payload values dynamically from the GenUI DataContext.
  • Static Data: Added data property for passing fixed parameters with actions.
  • Premium Feel: Added HapticFeedback on button interactions.

0.0.3 #

  • Enhanced UI customizations: added borderColor, borderWidth, shadowColor, fontWeight, letterSpacing, tooltip, and fullWidth.
  • Added intelligent default fallbacks to native Material 3 ThemeData properties.
  • Improved edge-case handling on payload casting and null values.
  • Added accessibility wrapped with Semantic labels.

0.0.2 #

  • Provided comprehensive library documentation.
  • Added an example application demonstrating genui_button usage.

0.0.1 #

  • Initial release containing GenUIButton widget for the GenUI framework.
1
likes
160
points
154
downloads

Publisher

unverified uploader

Weekly Downloads

A GenUI compatible button widget package. Provides a GenUIButton catalog item for GenUI agents to produce interactive UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, genui, json_schema_builder

More

Packages that depend on genui_button