-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Make in-season and not-in-season cards different #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple comments.
How does this affect later plans to use the veggie cards as heroes on the way to the detail screen? Is there a way to reach into the cards and lerp the saturation as the transition progresses?
veggieseasons/lib/screens/list.dart
Outdated
|
||
return DecoratedBox( | ||
decoration: BoxDecoration(color: Color(0xffffffff)), | ||
child: ListView( | ||
children: rows, | ||
child: CupertinoScrollbar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this isn't in the Cupertino Widget Gallery? I didn't know it existed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I didn't mean to keep this in. We'd need to fix flutter/flutter#13253 first. I'll add it to the catalog tomorrow though.
colorFilter: isInSeason | ||
? null | ||
// 222222 is a random color that has low color saturation. | ||
: ColorFilter.mode(Color(0xFF222222), BlendMode.saturation), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been sticking random colors like this in styles.dart
. Actually, ColorFilter has a const constructor, so you can probably just put the whole filter in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sure. Done
Heros can go from whatever dimension to whatever dimension showing whatever we want in the process.
Yes, we'd have to do a simple framework tweak on DecorationImage (could be your PR :D) though maybe it'd be cool to leave it desaturated too for off-season veggies. |
You'll have to exercise some artistic taste on top of this but it looks like this
Fixes flutter/flutter#30737
Tangentially fixes flutter/flutter#30511