pill_widget 1.2.3 copy "pill_widget: ^1.2.3" to clipboard
pill_widget: ^1.2.3 copied to clipboard

A customizable pill/chip widget for Flutter with inline editing support. Display labels with optional editable values in a sleek pill-shaped container.

1.2.3 #

  • Docs: Fixed screenshots with neutral gray background for better visibility on both light and dark pages.

1.2.2 #

  • Docs: Regenerated screenshots with neutral gray background for better visibility on both light and dark pages.
  • Docs: Fixed screenshot URLs for pub.dev.

1.2.1 #

  • Docs: Fixed screenshots not displaying on pub.dev by using absolute URLs.

1.2.0 #

  • Feature: label and value now accept a Widget in addition to String, enabling arbitrary widget content inside pills.
  • Feature: Added leading parameter for placing a widget before the label (e.g., an icon).
  • Feature: Added trailing parameter for placing a widget after the value/label (e.g., an arrow icon).
  • Improvement: When value is a Widget, editing is automatically disabled regardless of the editable flag.
  • Improvement: leading and showCheckIcon coexist — the check icon renders first, then the leading widget.
  • Updated example app with custom widget content demos.
  • Full backward compatibility — all existing string-based usage works unchanged.

1.1.1 #

  • Docs: Added screenshot for selectable pills.
  • Docs: Regenerated all screenshots.
  • Docs: Updated README with selectable pills usage, API reference, and feature listing.

1.1.0 #

  • Feature: Added selected property to display pills in a selected/chosen state with tinted background and thicker border.
  • Feature: Added showCheckIcon property to optionally display a check icon when selected.
  • Feature: Added selectedBackgroundColor, selectedBorderColor, and selectedBorderWidth to PillStyle for customizing the selected appearance.
  • Updated example app with interactive selectable pills demo.

1.0.1 #

  • Fix: Updated README to embed YouTube videos for demos.
  • Removed local video files to reduce repository size.

1.0.0 #

  • Breaking: Standardized height to 40.0 (24.0 content + padding) for all pill states to prevent layout jumps.
  • Feature: Added expandable property to allow pills to expand on tap for long text.
  • Feature: Added summary property to show a shorter initial value when collapsed.
  • Improvement: Editable pills now dynamically resize width to fit content during typing.
  • Improvement: All pill states now hug their content width tightly.
  • Documentation: Updated README with new screenshots and usage examples.

0.1.0 #

  • Breaking: Added PillStyle class for comprehensive style customization
  • Added style parameter to Pill widget for custom styling
  • Added PillStyles class with 8 predefined color presets:
    • info - Blue theme for informational content
    • success - Green theme for positive states
    • warning - Orange theme for warnings
    • error - Red theme for errors
    • special - Purple theme for highlighted content
    • neutral - Cyan theme for secondary content
    • muted - Grey theme for disabled content
    • date - Pink theme for temporal content
  • Added editable parameter to control inline editing behavior
  • Added onTap callback for tap handling on pills
  • Added text overflow handling with ellipsis for long values
  • Improved documentation with extensive code examples
  • Updated example app to showcase all new features

0.0.3 #

  • Added API documentation for Pill widget and its properties
  • Improved pub points score by addressing missing documentation

0.0.2 #

  • Added screenshots to README documentation
  • Code style improvements (removed unnecessary library directive)

0.0.1 #

  • Initial release
  • Pill widget with label-only and label+value modes
  • Inline editing support with tap-to-edit functionality
  • Clean pill-shaped design with black border
1
likes
160
points
289
downloads

Publisher

verified publishergoruv.com

Weekly Downloads

A customizable pill/chip widget for Flutter with inline editing support. Display labels with optional editable values in a sleek pill-shaped container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pill_widget