-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Dark mode CupertinoNavigationBar #40189
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
Dark mode CupertinoNavigationBar #40189
Conversation
justinmc
left a comment
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, just some small comments.
|
|
||
| final Color actionsForegroundColor = CupertinoDynamicColor.resolve( | ||
| widget.actionsForegroundColor, // ignore: deprecated_member_use_from_same_package | ||
| context |
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.
Trailing comma.
| ), | ||
| ); | ||
| expect(find.byType(BackdropFilter), findsNothing); | ||
| expect(find.byType(CupertinoNavigationBar), paints..rect(color: const Color(0xFFE5E5E5))); |
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.
Could you use background.color for this color here?
| ), | ||
| ); | ||
| expect(find.byType(BackdropFilter), findsOneWidget); | ||
| expect(find.byType(CupertinoNavigationBar), paints..rect(color: const Color(0xF3E5E5E5))); |
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.
Also here, background.darkColor
Piinks
left a comment
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, is this the minor golden change you mentioned offline? If so, I wouldn't consider it breaking. I would just make sure it is included in the change log.
Description
Update
CupertinoNavigationBarandCupertinoSliverNavigationBarso they handle dynamic colors. No screenshots because the appearance change is minimal: flutter/goldens#44Related Issues
part of #35541
Tests
I added the following tests:
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?
Not sure if this is breaking as the golden changes seem to be minimal.