Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/bots/analyze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ class _DeprecationMessagesVisitor extends RecursiveAstVisitor<void> {
_addErrorWithLineInfo(
versionLiteral,
error:
'Deprecation notice must end with a line saying "This feature was deprecated after...".',
'Deprecation notice must end with a line saying "This feature was deprecated after v<version>." (include the leading "v").',
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This change, which updates the error message for deprecation notices, and the related documentation update in docs/contributing/Tree-hygiene.md, are unrelated to the main purpose of this pull request (fixing an accessibility contrast issue). To maintain a clean and understandable commit history, please move these changes to a separate pull request.

);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/Tree-hygiene.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ In other words:
@Deprecated(
'[description of how to migrate] '
'[brief motivation for why we are breaking the API] '
'This feature was deprecated after [beta version at time of deprecation].'
'This feature was deprecated after v[beta version at time of deprecation].'
)
```

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_test/lib/src/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
return announcements;
}

static const TextStyle _messageStyle = TextStyle(color: Color(0xFF917FFF), fontSize: 40.0);
static const TextStyle _messageStyle = TextStyle(color: Color(0xFF8F7FFF), fontSize: 40.0);

static const Widget _preTestMessage = Center(
child: Text('Test starting...', style: _messageStyle, textDirection: TextDirection.ltr),
Expand Down