pill_widget 1.2.2
pill_widget: ^1.2.2 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.2 #
- Docs: Added light mode and dark mode screenshot sets.
- Docs: Updated README with separate Light Mode and Dark Mode screenshot sections.
- Improvement: Golden tests now generate both light and dark variants.
1.2.1 #
- Docs: Fixed screenshots not displaying on pub.dev by using absolute URLs.
1.2.0 #
- Feature:
labelandvaluenow accept aWidgetin addition toString, enabling arbitrary widget content inside pills. - Feature: Added
leadingparameter for placing a widget before the label (e.g., an icon). - Feature: Added
trailingparameter for placing a widget after the value/label (e.g., an arrow icon). - Improvement: When
valueis aWidget, editing is automatically disabled regardless of theeditableflag. - Improvement:
leadingandshowCheckIconcoexist — 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
selectedproperty to display pills in a selected/chosen state with tinted background and thicker border. - Feature: Added
showCheckIconproperty to optionally display a check icon when selected. - Feature: Added
selectedBackgroundColor,selectedBorderColor, andselectedBorderWidthtoPillStylefor 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
expandableproperty to allow pills to expand on tap for long text. - Feature: Added
summaryproperty 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
PillStyleclass for comprehensive style customization - Added
styleparameter toPillwidget for custom styling - Added
PillStylesclass with 8 predefined color presets:info- Blue theme for informational contentsuccess- Green theme for positive stateswarning- Orange theme for warningserror- Red theme for errorsspecial- Purple theme for highlighted contentneutral- Cyan theme for secondary contentmuted- Grey theme for disabled contentdate- Pink theme for temporal content
- Added
editableparameter to control inline editing behavior - Added
onTapcallback 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
Pillwidget 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