zulip-flutter icon indicating copy to clipboard operation
zulip-flutter copied to clipboard

model: Track/memoize stream-color variants somewhere other than `/api/model`

Open chrisbobbe opened this issue 9 months ago • 5 comments

Currently (well, after #381), the Subscription class has a colorSwatch method to return a memoized StreamColorSwatch. That code is in /api/model.

Probably there's a better, more UI-focused place to do those computations (adjusting lightness, opacity, etc.) and provide them to consumers: https://github.com/zulip/zulip-flutter/pull/381#discussion_r1396528348

chrisbobbe avatar Nov 18 '23 05:11 chrisbobbe