collor 1.2.1 copy "collor: ^1.2.1" to clipboard
collor: ^1.2.1 copied to clipboard

A super lightweight and elegant color picker library for Flutter applications with zero external dependencies.

Changelog #

1.2.1 #

🎨 UI/UX #

  • Removed lock icon control from the dialog
  • Removed top title text ("Select Color") to keep UI minimal

πŸ› οΈ Improvements #

  • Migrated to stable color APIs across codebase: .toARGB32(), .r/.g/.b/.a, .withValues()
  • Standardized HEX/RGB/RGBA/HSVA formatting in UI and examples
  • Minor code cleanup, added concise doc comments

πŸ§ͺ Tests & Quality #

  • Updated tests to not rely on removed title text
  • flutter analyze reports no issues
  • All tests are green

1.2.0 #

✨ New Features #

  • Added optional onChanged callback for live color updates during drag/hover
  • Added optional showAlpha flag to enable alpha (transparency) slider
  • Display RGBA and HSVA values when showAlpha: true

🎨 UI/UX #

  • Sliders now have a subtle grey background for better contrast
  • Added tooltips to color square, sliders, and confirm button
  • Added explicit "Lock picker" switch (in addition to tap on color square)

πŸ› οΈ Improvements #

  • Cached hue gradient colors (performance)
  • Safer access to RenderBox (null-safety during early frames)
  • Smarter CustomPainter.shouldRepaint to avoid unnecessary repaints
  • Replaced deprecated color comparisons with toARGB32() equality

πŸ§ͺ Tests #

  • Stabilized tests via keys and direct onPressed invocation
  • All tests are green

1.1.2 #

πŸ“Έ UI Improvements #

  • Added screenshot to README.md showcasing the color picker interface
  • Enhanced documentation with visual demonstration
  • Improved project presentation with live demo image

1.1.1 #

πŸ”§ Bug Fixes #

  • Fixed dart format issues in lib/collor.dart
  • Improved code formatting across all files
  • Enhanced static analysis compliance

1.1.0 #

πŸŽ‰ Major Updates #

  • Mobile Touch Support: Full touchscreen compatibility with drag gestures
  • Copy to Clipboard: One-click copying of color values (HEX, RGB, HSV)
  • Enhanced UI: Improved visual feedback and modern rounded design
  • English Notifications: All user interface text in English
  • Cross-platform: Optimized for Web, macOS, iOS, and Android

✨ New Features #

  • Touch drag support for color picker and sliders
  • Visual feedback during drag operations (larger indicators, shadows)
  • Copy buttons for each color format (HEX, RGB, HSV)
  • SnackBar notifications for copy actions
  • Improved mobile UX with single-tap activation
  • Enhanced slider visual design

πŸ”§ Technical Improvements #

  • Replaced deprecated withOpacity with withValues
  • Optimized layout for mobile screens
  • Fixed layout overflow issues
  • Improved gesture handling
  • Better error handling and stability

πŸ“± Mobile Optimizations #

  • Touch-friendly interface design
  • Responsive layout adjustments
  • Enhanced visual feedback for touch interactions
  • Optimized for mobile screen sizes

1.0.0 #

Initial release of the collor color picker library.

Features #

  • Interactive color square for color selection
  • Hue slider for base color selection
  • Value slider for brightness adjustment
  • Real-time color display (HEX, RGB, HSV)
  • Clean rectangular UI design
  • Zero external dependencies
  • Super lightweight (47KB, 325 lines of code)

Technical Details #

  • Single file implementation (color_picker_popup.dart)
  • Custom painters for color indicators
  • Optimized rendering performance
  • Minimal memory footprint
  • Fast color calculations

Dependencies #

  • Flutter SDK only
  • No external packages required
1
likes
160
points
35
downloads

Publisher

verified publisherworldin.net

Weekly Downloads

A super lightweight and elegant color picker library for Flutter applications with zero external dependencies.

Repository (GitHub)
View/report issues

Topics

#color-picker #color-selection #color #ui #picker

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on collor