-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Start fixing docs #45977
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
Start fixing docs #45977
Conversation
|
(There are still >600 issues remaining by local estimates) |
|
|
||
| @override | ||
| String toString() => '$runtimeType(value: begin)'; | ||
| String toString() => '$runtimeType(value: $begin)'; |
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.
Good catch 🙁
| /// Mandatory string to add after the properties of a node regardless of | ||
| /// whether the node has any properties. | ||
| /// | ||
| /// See [headerLineTextConfiguration] for an example of using this field to |
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.
singleLineTextConfiguration?
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.
That field sets this to '' - doesn't seem like a great example :\
| /// Widgets and render objects at lower layers that try to emulate the | ||
| /// underlying platform can depend on [defaultTargetPlatform] directly. The | ||
| /// [dart.io.Platform] object should only be used directly when it's critical to | ||
| /// [platform.Platform] object should only be used directly when it's critical to |
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.
Not [dart:io.Platform]?
| /// | ||
| /// We occasionally synthesize PointerEvents that aren't exact translations | ||
| /// of [ui.PointerData] from the engine to cover small cross-OS discrepancies | ||
| /// of [PointerData] from the engine to cover small cross-OS discrepancies |
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.
Does this not have to be [dart:ui.PointerData]?
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 think either one would work - this works because we're importing it in this file.
| /// This function must always return values in the range 0.0 to 1.0 given a | ||
| /// pressure that is between the minimum and maximum pressures. It may return | ||
| /// [double.NaN] for values that it does not want to support. | ||
| /// `double.NaN` for values that it does not want to support. |
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 wonder if it'd link it this was [dart:core.double.NaN]?
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.
No luck. I think this is probably a dartdoc bug but I'm also not sure how important it is we link to double.NaN here.
| /// | ||
| /// See also: | ||
| /// | ||
| /// * [ComputeNotch] a function used for creating a notch in a shape. |
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.
Maybe link to [NotchedShape]?
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.
Added
jacob314
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.
| /// 1. [localeListResolutionCallback] is attempted first. | ||
| /// 2. [localeResolutionCallback] is attempted second. | ||
| /// 3. Flutter's [WidgetsApp.basicLocaleListResolution] algorithm is attempted last. | ||
| /// 3. Flutter's basic resolution algorithm is attempted last. |
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.
Where is the basic resolution algorithm documented?
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.
Looks like it's documented in supportedLocales - maybe link to 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.
Done
| /// | ||
| /// The order of the list matters. The default locale resolution algorithm, | ||
| /// [basicLocaleListResolution], attempts to match by the following priority: | ||
| /// `basicLocaleListResolution`, attempts to match by the following priority: |
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.
Is this a symbol at all now?
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.
It's private API. Reworded.
| /// 4. [Locale.languageCode] only | ||
| /// 6. [Locale.countryCode] only when all [preferredLocales] fail to match | ||
| /// 5. returns [supportedLocales.first] as a fallback | ||
| /// 5. [Locale.countryCode] only when all preferred locales fail to match |
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.
Just make these all 1.
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.
Done
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
For the material and cupertino library changes
| /// after it is resolved against a [BuildContext] that: | ||
| /// - has a [CupertinoTheme] whose [brightness] is [PlatformBrightness.light], | ||
| /// or a [MediaQuery] whose [MediaQueryData.platformBrightness] is [PlatformBrightness.light]. | ||
| /// - has a [CupertinoTheme] whose [brightness] is [Brightness.light], |
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.
CC @LongCatIsLooong , looks like a systematic error
| /// | ||
| /// See also: | ||
| /// | ||
| /// * [ComputeNotch] a function used for creating a notch in a shape. |
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.
Nice discard.
tvolkert
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
dkwingsmt
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.
Otherwise LGTM on gestures.
| /// | ||
| /// This triggers when the pointer stops contacting the device after the 2nd tap, | ||
| /// immediately after [onDoubleTapUp]. | ||
| /// immediately after the second [GestureTapUpCallback]. |
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.
Change the 2 lines to:
/// This triggers when the pointer stops contacting the device after the 2nd tap.
The onDoubleTapUp is an proposed API that was eventually removed. Thanks for spotting it out.
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.
Done
dkwingsmt
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 on gestures
|
This pull request is not suitable for automatic merging in its current state.
|

Fixes ~200 issues currently with docs.
As it is this may have to be split up.
Addresses #31931
I basically started working from top down of dartdoc warnings/errors, although some I did en masse (e.g.
DiagnosticNode->DiagnosticsNode,SemanticNode->SemanticsNode) and some I grabbed because they were just close by in the file.