diff --git a/dev/devicelab/lib/framework/apk_utils.dart b/dev/devicelab/lib/framework/apk_utils.dart index 2baec6c682e..7b290c7dfe5 100644 --- a/dev/devicelab/lib/framework/apk_utils.dart +++ b/dev/devicelab/lib/framework/apk_utils.dart @@ -349,7 +349,8 @@ android { path.join(parent.path, 'hello', 'pubspec.yaml') ); final String contents = pubspec.readAsStringSync(); - final String newContents = contents.replaceFirst('# The following section is specific to Flutter.${platformLineSep}flutter:$platformLineSep', ''' + final String newContents = contents.replaceFirst('${platformLineSep}flutter:$platformLineSep', ''' + flutter: assets: - lib/gallery/example_code.dart diff --git a/packages/flutter_tools/bin/tool_backend.dart b/packages/flutter_tools/bin/tool_backend.dart index 57f377775ee..754df1ac1d4 100644 --- a/packages/flutter_tools/bin/tool_backend.dart +++ b/packages/flutter_tools/bin/tool_backend.dart @@ -6,7 +6,7 @@ import 'dart:convert'; // flutter_ignore: dart_convert_import. import 'dart:io'; // flutter_ignore: dart_io_import. -/// Executes the required flutter tasks for a desktop build. +/// Executes the required Flutter tasks for a desktop build. Future main(List arguments) async { final String targetPlatform = arguments[0]; final String buildMode = arguments[1].toLowerCase(); diff --git a/packages/flutter_tools/doc/daemon.md b/packages/flutter_tools/doc/daemon.md index b3f6613ed7e..15d144cf938 100644 --- a/packages/flutter_tools/doc/daemon.md +++ b/packages/flutter_tools/doc/daemon.md @@ -10,7 +10,7 @@ flutter daemon It runs a persistent, JSON-RPC based server to communicate with devices. IDEs and other tools can start the flutter tool in this mode and get device addition and removal notifications, as well as being able to programmatically start and stop apps on those devices. -A set of `flutter daemon` commands/events are also exposed via `flutter run --machine` and `flutter attach --machine` which allow IDEs and tools to launch and attach to flutter applications and interact to send commands like Hot Reload. The command and events that are available in these modes are documented at the bottom of this document. +A set of `flutter daemon` commands/events are also exposed via `flutter run --machine` and `flutter attach --machine` which allow IDEs and tools to launch and attach to Flutter applications and interact to send commands like Hot Reload. The command and events that are available in these modes are documented at the bottom of this document. ## Protocol diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart index 43a25134a5b..81731938ffb 100644 --- a/packages/flutter_tools/lib/src/commands/create.dart +++ b/packages/flutter_tools/lib/src/commands/create.dart @@ -436,7 +436,7 @@ Your $application code is in $relativeAppMain. int generatedCount = 0; final String description = argResults.wasParsed('description') ? stringArg('description') - : 'A new flutter module project.'; + : 'A new Flutter module project.'; templateContext['description'] = description; generatedCount += await renderTemplate( globals.fs.path.join('module', 'common'), @@ -515,7 +515,7 @@ Your $application code is in $relativeAppMain. int generatedCount = 0; final String description = argResults.wasParsed('description') ? stringArg('description') - : 'A new flutter plugin project.'; + : 'A new Flutter plugin project.'; templateContext['description'] = description; generatedCount += await renderMerged( ['plugin', 'plugin_shared'], diff --git a/packages/flutter_tools/lib/src/commands/daemon.dart b/packages/flutter_tools/lib/src/commands/daemon.dart index edffc6779e0..e0373180b7a 100644 --- a/packages/flutter_tools/lib/src/commands/daemon.dart +++ b/packages/flutter_tools/lib/src/commands/daemon.dart @@ -1488,7 +1488,7 @@ class LogMessage { final StackTrace stackTrace; } -/// The method by which the flutter app was launched. +/// The method by which the Flutter app was launched. class LaunchMode { const LaunchMode._(this._value); diff --git a/packages/flutter_tools/lib/src/commands/upgrade.dart b/packages/flutter_tools/lib/src/commands/upgrade.dart index 788844e946b..8c566f57e2d 100644 --- a/packages/flutter_tools/lib/src/commands/upgrade.dart +++ b/packages/flutter_tools/lib/src/commands/upgrade.dart @@ -49,7 +49,7 @@ class UpgradeCommand extends FlutterCommand { ) ..addFlag( 'verify-only', - help: 'Checks for any new flutter updates, without actually fetching them.', + help: 'Checks for any new Flutter updates, without actually fetching them.', negatable: false, ); } diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index 3136079431b..97140e69a72 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart @@ -465,7 +465,7 @@ abstract class PollingDeviceDiscovery extends DeviceDiscovery { String toString() => '$name device discovery'; } -/// A device is a physical hardware that can run a flutter application. +/// A device is a physical hardware that can run a Flutter application. /// /// This may correspond to a connected iOS or Android device, or represent /// the host operating system in the case of Flutter Desktop. @@ -622,7 +622,7 @@ abstract class Device { /// Whether this device implements support for hot restart. bool get supportsHotRestart => true; - /// Whether flutter applications running on this device can be terminated + /// Whether Flutter applications running on this device can be terminated /// from the VM Service. bool get supportsFlutterExit => true; diff --git a/packages/flutter_tools/lib/src/flutter_plugins.dart b/packages/flutter_tools/lib/src/flutter_plugins.dart index af965ede481..08f1d25a632 100644 --- a/packages/flutter_tools/lib/src/flutter_plugins.dart +++ b/packages/flutter_tools/lib/src/flutter_plugins.dart @@ -530,7 +530,7 @@ const String _pluginRegistrantPodspecTemplate = ''' Pod::Spec.new do |s| s.name = 'FlutterPluginRegistrant' s.version = '0.0.1' - s.summary = 'Registers plugins with your flutter app' + s.summary = 'Registers plugins with your Flutter app' s.description = <<-DESC Depends on all your plugins, and provides a function to register them. DESC diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart index ee902b38ac7..2221e1cc73d 100644 --- a/packages/flutter_tools/lib/src/ios/mac.dart +++ b/packages/flutter_tools/lib/src/ios/mac.dart @@ -297,7 +297,7 @@ Future buildXcodeProject({ if (activeArchName != null) { buildCommands.add('ONLY_ACTIVE_ARCH=YES'); // Setting ARCHS to $activeArchName will break the build if a watchOS companion app exists, - // as it cannot be build for the architecture of the flutter app. + // as it cannot be build for the architecture of the Flutter app. if (!hasWatchCompanion) { buildCommands.add('ARCHS=$activeArchName'); } diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index 127dd197d26..a1622b0c7da 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart @@ -709,7 +709,7 @@ class FlutterVmService { isolateId: isolateId, ); // A response of `null` indicates that `invokeFlutterExtensionRpcRaw` caught an RPCError - // with a missing method code. This can happen when attempting to quit a flutter app + // with a missing method code. This can happen when attempting to quit a Flutter app // that never registered the methods in the bindings. if (result == null) { return false; diff --git a/packages/flutter_tools/lib/src/xcode_project.dart b/packages/flutter_tools/lib/src/xcode_project.dart index 300773c6984..b0818ae019b 100644 --- a/packages/flutter_tools/lib/src/xcode_project.dart +++ b/packages/flutter_tools/lib/src/xcode_project.dart @@ -118,7 +118,7 @@ class IosProject extends XcodeBasedProject { /// True, if the parent Flutter project is a module project. bool get isModule => parent.isModule; - /// Whether the flutter application has an iOS project. + /// Whether the Flutter application has an iOS project. bool get exists => hostAppRoot.existsSync(); /// Put generated files here. diff --git a/packages/flutter_tools/templates/app/README.md.tmpl b/packages/flutter_tools/templates/app/README.md.tmpl index f64b22d29b2..b6ab5407deb 100644 --- a/packages/flutter_tools/templates/app/README.md.tmpl +++ b/packages/flutter_tools/templates/app/README.md.tmpl @@ -8,9 +8,9 @@ This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, samples, guidance on mobile development, and a full API reference. diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index 6bc1a4a1d6b..2c248a10185 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -60,7 +60,7 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter. +# The following section is specific to Flutter packages. flutter: # The following line ensures that the Material Icons font is diff --git a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/debug/AndroidManifest.xml.tmpl b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/debug/AndroidManifest.xml.tmpl index 0af0a6f7ca4..b82f4eefeed 100644 --- a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/debug/AndroidManifest.xml.tmpl +++ b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/debug/AndroidManifest.xml.tmpl @@ -1,6 +1,7 @@ - diff --git a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/res/values-night/styles.xml b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/res/values-night/styles.xml index 3db14bb5391..06952be745f 100644 --- a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/res/values-night/styles.xml +++ b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/res/values-night/styles.xml @@ -3,7 +3,7 @@ diff --git a/packages/flutter_tools/templates/app_test_widget/test/widget_test.dart.tmpl b/packages/flutter_tools/templates/app_test_widget/test/widget_test.dart.tmpl index e915079b8e4..1a7a271da32 100644 --- a/packages/flutter_tools/templates/app_test_widget/test/widget_test.dart.tmpl +++ b/packages/flutter_tools/templates/app_test_widget/test/widget_test.dart.tmpl @@ -1,7 +1,7 @@ // This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll +// utility in the flutter_test package. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. diff --git a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/res/values/styles.xml b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/res/values/styles.xml index 00fa4417cfb..2676b0bb19d 100644 --- a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/res/values/styles.xml +++ b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/res/values/styles.xml @@ -2,7 +2,7 @@ diff --git a/packages/flutter_tools/templates/module/common/README.md.tmpl b/packages/flutter_tools/templates/module/common/README.md.tmpl index bc336bf31f4..dd339b79d58 100644 --- a/packages/flutter_tools/templates/module/common/README.md.tmpl +++ b/packages/flutter_tools/templates/module/common/README.md.tmpl @@ -4,7 +4,7 @@ ## Getting Started -For help getting started with Flutter, view our online +For help getting started with Flutter development, view the online [documentation](https://flutter.dev/). For instructions integrating Flutter modules to your existing applications, diff --git a/packages/flutter_tools/templates/module/common/test/widget_test.dart.tmpl b/packages/flutter_tools/templates/module/common/test/widget_test.dart.tmpl index 72a734a5c1e..c27006fbc84 100644 --- a/packages/flutter_tools/templates/module/common/test/widget_test.dart.tmpl +++ b/packages/flutter_tools/templates/module/common/test/widget_test.dart.tmpl @@ -1,7 +1,7 @@ // This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll +// utility in the flutter_test package. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. diff --git a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl index 6f86de4c45f..707a35f8bc5 100644 --- a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl @@ -19,7 +19,7 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter. +# The following section is specific to Flutter packages. flutter: # To add assets to your package, add an assets section, like this: diff --git a/packages/flutter_tools/templates/plugin/README.md.tmpl b/packages/flutter_tools/templates/plugin/README.md.tmpl index a007a8cc9b2..94303a450ed 100644 --- a/packages/flutter_tools/templates/plugin/README.md.tmpl +++ b/packages/flutter_tools/templates/plugin/README.md.tmpl @@ -9,7 +9,7 @@ This project is a starting point for a Flutter a specialized package that includes platform-specific implementation code for Android and/or iOS. -For help getting started with Flutter, view our +For help getting started with Flutter development, view the [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. diff --git a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl index b2fbb42ae78..d5c8fe067a5 100644 --- a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl @@ -31,7 +31,7 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter. +# The following section is specific to Flutter packages. flutter: # This section identifies this Flutter project as a plugin project. # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) diff --git a/packages/flutter_tools/templates/skeleton/README.md.tmpl b/packages/flutter_tools/templates/skeleton/README.md.tmpl index 538c451edf1..ee156797364 100644 --- a/packages/flutter_tools/templates/skeleton/README.md.tmpl +++ b/packages/flutter_tools/templates/skeleton/README.md.tmpl @@ -8,7 +8,7 @@ This project is a starting point for a Flutter application that follows the [simple app state management tutorial](https://flutter.dev/docs/development/data-and-backend/state-mgmt/simple). -For help getting started with Flutter, view our +For help getting started with Flutter development, view the [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. diff --git a/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl b/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl index eed00736b8a..13ad8b90328 100644 --- a/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl +++ b/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl @@ -1,7 +1,7 @@ // This is an example Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll +// utility in the flutter_test package. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. // diff --git a/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart b/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart index a9922233eff..1837c7ef617 100644 --- a/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart +++ b/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart @@ -21,7 +21,7 @@ void main() { tryToDelete(tempDir); }); - testWithoutContext('flutter app that depends on a non-Android plugin can still build for Android', () { + testWithoutContext('Flutter app that depends on a non-Android plugin can still build for Android', () { final String flutterRoot = getFlutterRoot(); final String flutterBin = fileSystem.path.join( flutterRoot, diff --git a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart index 715e1dd40cc..ea8af435671 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart @@ -549,7 +549,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {