diff --git a/dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart b/dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart index 1451d233dc..e67fa24668 100644 --- a/dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart +++ b/dev/benchmarks/macrobenchmarks/lib/src/web/recorder.dart @@ -164,7 +164,7 @@ abstract class Recorder { /// /// Example: /// -/// ``` +/// ```dart /// class BenchForLoop extends RawRecorder { /// BenchForLoop() : super(name: benchmarkName); /// @@ -219,7 +219,7 @@ abstract class RawRecorder extends Recorder { /// /// Example: /// -/// ``` +/// ```dart /// class BenchDrawCircle extends SceneBuilderRecorder { /// BenchDrawCircle() : super(name: benchmarkName); /// @@ -311,7 +311,7 @@ abstract class SceneBuilderRecorder extends Recorder { /// /// Example: /// -/// ``` +/// ```dart /// class BenchListView extends WidgetRecorder { /// BenchListView() : super(name: benchmarkName); /// diff --git a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart index 2af0dc28d5..d82befae49 100644 --- a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart +++ b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart @@ -21,7 +21,7 @@ import 'stock_strings_es.dart'; /// localizationDelegates list, and the locales they support in the app's /// supportedLocales list. For example: /// -/// ``` +/// ```dart /// import 'i18n/stock_strings.dart'; /// /// return MaterialApp( @@ -36,7 +36,7 @@ import 'stock_strings_es.dart'; /// Please make sure to update your pubspec.yaml to include the following /// packages: /// -/// ``` +/// ```yaml /// dependencies: /// # Internationalization support. /// flutter_localizations: diff --git a/dev/devicelab/lib/framework/browser.dart b/dev/devicelab/lib/framework/browser.dart index d7ea4d3cc4..2ec7e885d0 100644 --- a/dev/devicelab/lib/framework/browser.dart +++ b/dev/devicelab/lib/framework/browser.dart @@ -426,7 +426,7 @@ class BlinkTraceEvent { /// /// Sample event encoded as JSON (the data is bogus, this just shows the format): /// - /// ``` + /// ```json /// { /// "name": "myName", /// "cat": "category,list", diff --git a/dev/tools/dartdoc_checker.dart b/dev/tools/dartdoc_checker.dart index cbc47f8540..314e64c145 100644 --- a/dev/tools/dartdoc_checker.dart +++ b/dev/tools/dartdoc_checker.dart @@ -41,7 +41,7 @@ const List dartdocDirectiveCanaryFiles = [ /// sample code where the sequence is perfectly legal, e.g. for required named /// parameters of a method: /// -/// ``` +/// ```dart /// void foo({@required int bar}); /// ``` void checkForUnresolvedDirectives(Directory dartDocDir) { diff --git a/dev/tools/localization/bin/gen_date_localizations.dart b/dev/tools/localization/bin/gen_date_localizations.dart index b0c410a637..c98ae4c0f5 100644 --- a/dev/tools/localization/bin/gen_date_localizations.dart +++ b/dev/tools/localization/bin/gen_date_localizations.dart @@ -31,14 +31,14 @@ String? currentLocale; /// /// The following outputs the generated Dart code to the console as a dry run: /// -/// ``` +/// ```bash /// dart dev/tools/localization/bin/gen_date_localizations.dart /// ``` /// /// If the data looks good, use the `--overwrite` option to overwrite the /// lib/src/l10n/date_localizations.dart file: /// -/// ``` +/// ```bash /// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite /// ``` Future main(List rawArgs) async { diff --git a/packages/flutter_tools/lib/src/base/async_guard.dart b/packages/flutter_tools/lib/src/base/async_guard.dart index 2d40778e82..dbcfcd5ab7 100644 --- a/packages/flutter_tools/lib/src/base/async_guard.dart +++ b/packages/flutter_tools/lib/src/base/async_guard.dart @@ -31,7 +31,7 @@ import 'dart:async'; /// Rationale: /// /// Consider the following snippet: -/// ``` +/// ```dart /// try { /// await foo(); /// ... @@ -55,7 +55,7 @@ import 'dart:async'; /// [asyncGuard] is intended to wrap awaited expressions occurring in a `try` /// block. The behavior described above gives the behavior that users /// intuitively expect from `await`. Consider the snippet: -/// ``` +/// ```dart /// try { /// await asyncGuard(() async { /// var c = Completer(); diff --git a/packages/flutter_tools/lib/src/commands/attach.dart b/packages/flutter_tools/lib/src/commands/attach.dart index 9ff56ebde2..9dd507b4c2 100644 --- a/packages/flutter_tools/lib/src/commands/attach.dart +++ b/packages/flutter_tools/lib/src/commands/attach.dart @@ -40,19 +40,19 @@ import '../vmservice.dart'; /// /// With an application already running, a HotRunner can be attached to it /// with: -/// ``` +/// ```bash /// $ flutter attach --debug-url http://127.0.0.1:12345/QqL7EFEDNG0=/ /// ``` /// /// If `--disable-service-auth-codes` was provided to the application at startup /// time, a HotRunner can be attached with just a port: -/// ``` +/// ```bash /// $ flutter attach --debug-port 12345 /// ``` /// /// Alternatively, the attach command can start listening and scan for new /// programs that become active: -/// ``` +/// ```bash /// $ flutter attach /// ``` /// As soon as a new VM Service is detected the command attaches to it and diff --git a/packages/flutter_tools/lib/src/localizations/gen_l10n.dart b/packages/flutter_tools/lib/src/localizations/gen_l10n.dart index 4cb6e2b003..781602346f 100644 --- a/packages/flutter_tools/lib/src/localizations/gen_l10n.dart +++ b/packages/flutter_tools/lib/src/localizations/gen_l10n.dart @@ -692,7 +692,7 @@ class LocalizationsGenerator { /// Whether to generate the Dart localization methods with named parameters. /// /// If this sets to true, the generated Dart localization methods will be: - /// ``` + /// ```dart /// String helloWorld({required String name}); /// ``` final bool useNamedParameters;