Urgent.News

What's breaking now, across hundreds of outlets.

Tech

chroma_picker: maintained color pickers for Flutter with the modern Color API

A color picker looks like a solved problem until you upgrade Flutter. Since Flutter 3.27, the old Color members ( withOpacity , .red , .green , .blue , .alpha , .opacity , .value ) are deprecated, and a package that still uses them fills your analyzer output with warnings you cannot fix from your own code. The README of chroma_picker counts them for flutter_colorpicker 1.1.0: on Flutter 3.35,…

For developers using Flutter, a color picker has long been a solved problem. However, with the arrival of Flutter 3.27, the deprecated Color members (withOpacity, .red, .green, .blue, .alpha, .opacity, .value) have led to an influx of warnings in packages that still rely on them. chroma_picker addresses this issue with a clean-room replacement that adheres to the modern Color API.

The package includes six pickers: ColorPicker, SlidePicker, HueRingPicker, MaterialPicker, BlockPicker, and MultipleChoiceBlockPicker. It reads colors through .r, .g, .b, .a, and toARGB32() methods, converting wide-gamut colors to sRGB and ensuring idempotent HSV to RGB conversions. Hex and WCAG helpers are also provided, along with accessibility features such as keyboard and screen reader support.

To use chroma_picker, simply add it from GitHub with Flutter 3.27 or later, and leverage the provided widgets or helper functions.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I Generated 450+ Business Checklist Items with Python (reportlab + One Data Structure)

I sell a bundle of 30 business checklists (~450 items). People assume a team wrote them. No — a Python script did, in an afternoon.

  • Programmer generates 450+ business checklist items using Python script
  • Checklists consist of three sections with 15 items each, totaling 30 checklists
  • Python data structure serves as single source of truth for PDFs, SEO pages, and previews

Preserve Product Context When an RFQ Form Fails

A buyer opens an inquiry form from the product page for model CS-240. The form rejects the phone number. After correcting it, the buyer submits again, and the sales team receives an inquiry with no…

  • RFQ form failure leads to lost product context
  • Model key should be sent with form to preserve context
  • Server must resolve model key and attach to pending form state

Converting BIN and HEX Firmware Files for EEPROM Programmers & Receivers

Binary & Firmware Related Interactive Tool: Try this workflow directly in your browser. Open Tool → Whether you are recovering a bricked laptop BIOS chip, cloning a satellite receiver EEPROM, or…

  • BIN and HEX files convert for EEPROM programmers and receivers
  • .BIN files are direct, address-less flash memory mirrors
  • .HEX files encode binary data into ASCII lines with offsets

More from Sunday 22 November →