[go: nahoru, domu]

Skip to content
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

iOS 16 context menu #115805

Merged
merged 11 commits into from
Nov 29, 2022
Prev Previous commit
Fix test with hardcoded colors
  • Loading branch information
justinmc committed Nov 29, 2022
commit 230a7f63fa5a40de1be5aef7b6e4d939606bbb52
8 changes: 6 additions & 2 deletions packages/flutter/test/cupertino/text_field_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,11 @@ void main() {
await tester.pump(const Duration(milliseconds: 200));

Text text = tester.widget<Text>(find.text('Paste'));
expect(text.style!.color, CupertinoColors.black);
const CupertinoDynamicColor toolbarTextColor = CupertinoDynamicColor.withBrightness(
color: CupertinoColors.black,
darkColor: CupertinoColors.white,
);
expect(text.style!.color, toolbarTextColor);
expect(text.style!.fontSize, 14);
expect(text.style!.letterSpacing, -0.15);
expect(text.style!.fontWeight, FontWeight.w400);
Expand Down Expand Up @@ -1555,7 +1559,7 @@ void main() {

text = tester.widget<Text>(find.text('Paste'));
// The toolbar buttons' text are still the same style.
expect(text.style!.color, CupertinoColors.black);
expect(text.style!.color, toolbarTextColor);
expect(text.style!.fontSize, 14);
expect(text.style!.letterSpacing, -0.15);
expect(text.style!.fontWeight, FontWeight.w400);
Expand Down