collor 1.2.1
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
withwithValues
- 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