Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Cupertino demo improvements #667

Merged
merged 6 commits into from
May 3, 2022
Merged

Cupertino demo improvements #667

merged 6 commits into from
May 3, 2022

Conversation

guidezpl
Copy link
Member

@guidezpl guidezpl commented Apr 29, 2022

Easy fixes to cupertino demos:

  • adding disabled examples to buttons and switches
  • removing the pull to refresh demo. It's not working on web (intentionally), and is an outlier as it isn't a component. Since the sample code for CupertinoSliverRefreshControl is more complete, remove this demo

Remaining issues are in the framework (e.g. flutter/flutter#54241)

Additonal change: I made the test which verifies code_segments.dart is up to date less verbose in CI, and make it just show the error instead. The full diff took forever to render and hid the actual error.

@guidezpl guidezpl requested a review from pennzht April 29, 2022 06:26
@pennzht
Copy link
Member

pennzht commented May 3, 2022

Thanks for the PR!
It looks like the goldens need replacing.

@guidezpl
Copy link
Member Author

guidezpl commented May 3, 2022

Yeah the goldens have been failing for a while. I was waiting for things to settle upstream (low-level rendering changes). I'll get new goldens in.

Copy link
Member

@pennzht pennzht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

test('verify code segments are up to date', () async {
final currentCodeSegments = readCodeSegments();
var newCodeSegments = await getCodeSegments();

expect(standardizeLineEndings(newCodeSegments),
standardizeLineEndings(currentCodeSegments),
expect(_compareCodeSegments(currentCodeSegments, newCodeSegments), true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how this change simplifies the log!

@guidezpl guidezpl merged commit f9ff7d5 into master May 3, 2022
@guidezpl guidezpl deleted the fix-cupertino branch May 3, 2022 13:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants