Remove "note that" in our documentation (as per style guide) (#120842)
* lerp documentation * Remove Note, Note That from repo * Improve BorderSide documentation. * apply review comments
This commit is contained in:
@@ -630,7 +630,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final ScrollMode currentMode = ComplexLayoutApp.of(context)!.scrollMode;
|
||||
return Drawer(
|
||||
// Note: for real apps, see the Gallery material Drawer demo. More
|
||||
// For real apps, see the Gallery material Drawer demo. More
|
||||
// typically, a drawer would have a fixed header with a scrolling body
|
||||
// below it.
|
||||
child: ListView(
|
||||
|
||||
@@ -24,7 +24,7 @@ void main() async {
|
||||
watch.reset();
|
||||
watch.start();
|
||||
for (int i = 0; i < _kBatchSize; i += 1) {
|
||||
// Note: We don't load images like this. PlatformAssetBundle is used for
|
||||
// We don't load images like this. PlatformAssetBundle is used for
|
||||
// other assets (like Rive animations). We are using an image because it's
|
||||
// conveniently sized and available for the test.
|
||||
tally += (await bundle.load('packages/flutter_gallery_assets/places/india_pondicherry_salt_farm.png')).lengthInBytes;
|
||||
|
||||
@@ -13,8 +13,8 @@ buildscript {
|
||||
classpath "com.android.tools.build:gradle:7.3.0"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
// Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1842,7 +1842,7 @@ Future<void> verifyNullInitializedDebugExpensiveFields(String workingDirectory,
|
||||
}
|
||||
}
|
||||
|
||||
final RegExp tabooPattern = RegExp(r'^ *///.*\b(simply)\b', caseSensitive: false);
|
||||
final RegExp tabooPattern = RegExp(r'^ *///.*\b(simply|note:|note that)\b', caseSensitive: false);
|
||||
|
||||
Future<void> verifyTabooDocumentation(String workingDirectory, { int minimumMatches = 100 }) async {
|
||||
final List<String> errors = <String>[];
|
||||
@@ -1859,7 +1859,8 @@ Future<void> verifyTabooDocumentation(String workingDirectory, { int minimumMatc
|
||||
if (errors.isNotEmpty) {
|
||||
foundError(<String>[
|
||||
'${bold}Avoid the word "simply" in documentation. See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-the-passive-voice-recommend-do-not-require-never-say-things-are-simple for details.$reset',
|
||||
'${bold}In many cases the word can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.$reset',
|
||||
'${bold}In many cases thes words can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.$reset',
|
||||
'${bold}Similarly, avoid using "note:" or the phrase "note that". See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-empty-prose for details.$reset',
|
||||
...errors,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ function script_location() {
|
||||
|
||||
function generate_docs() {
|
||||
# Install and activate dartdoc.
|
||||
# NOTE: When updating to a new dartdoc version, please also update
|
||||
# When updating to a new dartdoc version, please also update
|
||||
# `dartdoc_options.yaml` to include newly introduced error and warning types.
|
||||
"$DART" pub global activate dartdoc 6.1.5
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ On each new change to this `Dockerfile`, Cirrus will build a new version of
|
||||
the Docker image as a dependency to any Linux tests. It is no longer necessary
|
||||
to manually build and push the Docker image locally.
|
||||
|
||||
NOTE: there are some factors external to the actual `Dockerfile` that would
|
||||
There are some factors external to the actual `Dockerfile` that would
|
||||
necessitate rebuilding the Docker image, such as upstream code changes, (Linux
|
||||
distribution) repository updates or a file that gets `COPY`ied into the image
|
||||
changing. In this case, a trivial `Dockerfile` change (such as a comment)
|
||||
|
||||
@@ -129,8 +129,7 @@ abstract class Repository {
|
||||
'Fetch ${upstreamRemote.name} to ensure we have latest refs',
|
||||
workingDirectory: _checkoutDirectory!.path,
|
||||
);
|
||||
// Note: if [initialRef] is a remote ref the checkout will be left in a
|
||||
// detached HEAD state.
|
||||
// If [initialRef] is a remote ref, the checkout will be left in a detached HEAD state.
|
||||
await git.run(
|
||||
<String>['checkout', initialRef!],
|
||||
'Checking out initialRef $initialRef',
|
||||
|
||||
@@ -531,7 +531,7 @@ void main() {
|
||||
'171876a4e6cf56ee6da1f97d203926bd7afda7ef';
|
||||
const String nextDartRevision =
|
||||
'f6c91128be6b77aef8351e1e3a9d07c85bc2e46e';
|
||||
// note that this significantly behind the candidate branch name
|
||||
// This is significantly behind the candidate branch name
|
||||
const String previousVersion = '0.9.0-1.0.pre';
|
||||
// This is what this release will be
|
||||
const String nextVersion = '0.9.0-1.1.pre';
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Note: This code is not runnable, it contains code snippets displayed in the
|
||||
// gallery.
|
||||
// This code is not runnable, it contains code snippets displayed in the Gallery.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
self.navigationController.navigationBarHidden = NO;
|
||||
self.navigationController.hidesBarsOnSwipe = NO;
|
||||
if (self.isMovingFromParentViewController) {
|
||||
// Note that if we were doing things that might cause the VC
|
||||
// If we were doing things that might cause the VC
|
||||
// to disappear (like using the image_picker plugin)
|
||||
// we shouldn't do this. But in this case we know we're
|
||||
// we shouldn't do this, but in this case we know we're
|
||||
// just going back to the navigation controller.
|
||||
// If we needed Flutter to tell us when we could actually go away,
|
||||
// we'd need to communicate over a method channel with it.
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
self.navigationController.navigationBarHidden = NO;
|
||||
self.navigationController.hidesBarsOnSwipe = NO;
|
||||
if (self.isMovingFromParentViewController) {
|
||||
// Note that if we were doing things that might cause the VC
|
||||
// If we were doing things that might cause the VC
|
||||
// to disappear (like using the image_picker plugin)
|
||||
// we shouldn't do this. But in this case we know we're
|
||||
// we shouldn't do this, but in this case we know we're
|
||||
// just going back to the navigation controller.
|
||||
// If we needed Flutter to tell us when we could actually go away,
|
||||
// we'd need to communicate over a method channel with it.
|
||||
|
||||
@@ -21,9 +21,9 @@ const String hybridRouteName = 'hybrid';
|
||||
/// Channel used to let the Flutter app know to reset the app to a specific
|
||||
/// route. See the [run] method.
|
||||
///
|
||||
/// Note that we shouldn't use the `setInitialRoute` method on the system
|
||||
/// navigation channel, as that never gets propagated back to Flutter after the
|
||||
/// initial call.
|
||||
/// We shouldn't use the `setInitialRoute` method on the system
|
||||
/// navigation channel, as that never gets propagated back to Flutter
|
||||
/// after the initial call.
|
||||
const String _kReloadChannelName = 'reload';
|
||||
const BasicMessageChannel<String> _kReloadChannel =
|
||||
BasicMessageChannel<String>(_kReloadChannelName, StringCodec());
|
||||
|
||||
@@ -76,18 +76,21 @@ class PhysicalKeyData {
|
||||
return outputMap;
|
||||
}
|
||||
|
||||
/// Parses entries from Androids Generic.kl scan code data file.
|
||||
/// Parses entries from Android's `Generic.kl` scan code data file.
|
||||
///
|
||||
/// Lines in this file look like this (without the ///):
|
||||
///
|
||||
/// ```
|
||||
/// key 100 ALT_RIGHT
|
||||
/// # key 101 "KEY_LINEFEED"
|
||||
/// key 477 F12 FUNCTION
|
||||
/// ```
|
||||
///
|
||||
/// We parse the commented out lines as well as the non-commented lines, so
|
||||
/// that we can get names for all of the available scan codes, not just ones
|
||||
/// defined for the generic profile.
|
||||
///
|
||||
/// Also, note that some keys (notably MEDIA_EJECT) can be mapped to more than
|
||||
/// Some keys (notably `MEDIA_EJECT`) can be mapped to more than
|
||||
/// one scan code, so the mapping can't just be 1:1, it has to be 1:many.
|
||||
static Map<String, List<int>> _readAndroidScanCodes(String keyboardLayout, String nameMap) {
|
||||
final RegExp keyEntry = RegExp(
|
||||
|
||||
Reference in New Issue
Block a user