Fix some errors in snippets (#87528)
This commit is contained in:
parent
cf0be0a1d9
commit
0151359c07
19
.cirrus.yml
19
.cirrus.yml
@ -67,16 +67,15 @@ task:
|
|||||||
- date
|
- date
|
||||||
- which flutter
|
- which flutter
|
||||||
matrix:
|
matrix:
|
||||||
# TODO(flutter): https://github.com/flutter/flutter/issues/87517 analyze linux is only failing on Cirrus due to an unknown snippets issue
|
- name: analyze-linux # linux-only
|
||||||
# - name: analyze-linux # linux-only
|
only_if: "$CIRRUS_PR != ''"
|
||||||
# only_if: "$CIRRUS_PR != ''"
|
environment:
|
||||||
# environment:
|
# Empirically, the analyze-linux shard runs surprisingly fast (under 15 minutes) with just 1
|
||||||
# # Empirically, the analyze-linux shard runs surprisingly fast (under 15 minutes) with just 1
|
# CPU. We noticed OOM failures with 6GB 4/2020, so we increased the memory.
|
||||||
# # CPU. We noticed OOM failures with 6GB 4/2020, so we increased the memory.
|
CPU: 1
|
||||||
# CPU: 1
|
MEMORY: 8G
|
||||||
# MEMORY: 8G
|
script:
|
||||||
# script:
|
- dart --enable-asserts ./dev/bots/analyze.dart
|
||||||
# - dart --enable-asserts ./dev/bots/analyze.dart
|
|
||||||
|
|
||||||
- name: framework_tests-widgets-linux
|
- name: framework_tests-widgets-linux
|
||||||
only_if: "changesInclude('.cirrus.yml', 'dev/**', 'packages/flutter/**', 'packages/flutter_test/**', 'packages/flutter_tools/lib/src/test/**', 'bin/**') && $CIRRUS_PR != ''"
|
only_if: "changesInclude('.cirrus.yml', 'dev/**', 'packages/flutter/**', 'packages/flutter_test/**', 'packages/flutter_tools/lib/src/test/**', 'bin/**') && $CIRRUS_PR != ''"
|
||||||
|
@ -106,7 +106,7 @@ Future<void> run(List<String> arguments) async {
|
|||||||
// Analyze all the sample code in the repo
|
// Analyze all the sample code in the repo
|
||||||
print('$clock Sample code...');
|
print('$clock Sample code...');
|
||||||
await runCommand(dart,
|
await runCommand(dart,
|
||||||
<String>[path.join(flutterRoot, 'dev', 'bots', 'analyze_sample_code.dart')],
|
<String>[path.join(flutterRoot, 'dev', 'bots', 'analyze_sample_code.dart'), '--verbose'],
|
||||||
workingDirectory: flutterRoot,
|
workingDirectory: flutterRoot,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ class CupertinoContextMenu extends StatefulWidget {
|
|||||||
/// onPressed: () {},
|
/// onPressed: () {},
|
||||||
/// ),
|
/// ),
|
||||||
/// ],
|
/// ],
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
|
@ -429,7 +429,7 @@ enum ListTileControlAffinity {
|
|||||||
/// ),
|
/// ),
|
||||||
/// title: const Text('title'),
|
/// title: const Text('title'),
|
||||||
/// dense: false,
|
/// dense: false,
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
///
|
///
|
||||||
|
@ -138,16 +138,15 @@ class ProgressIndicatorThemeData with Diagnosticable {
|
|||||||
/// {@tool snippet}
|
/// {@tool snippet}
|
||||||
///
|
///
|
||||||
/// Here is an example of a progress indicator theme that applies a red indicator
|
/// Here is an example of a progress indicator theme that applies a red indicator
|
||||||
/// color with a slightly transparent red for the background track color.
|
/// color.
|
||||||
///
|
///
|
||||||
/// ```dart
|
/// ```dart
|
||||||
/// ProgressIndicatorTheme(
|
/// const ProgressIndicatorTheme(
|
||||||
/// data: ProgressIndicatorThemeData(
|
/// data: ProgressIndicatorThemeData(
|
||||||
/// color: Colors.red,
|
/// color: Colors.red,
|
||||||
/// backgroundColor: Colors.red.withOpacity(0.25),
|
|
||||||
/// ),
|
/// ),
|
||||||
/// child: LinearProgressIndicator()
|
/// child: LinearProgressIndicator()
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
class ProgressIndicatorTheme extends InheritedTheme {
|
class ProgressIndicatorTheme extends InheritedTheme {
|
||||||
|
@ -128,7 +128,7 @@ class TextSelectionThemeData with Diagnosticable {
|
|||||||
/// selectionHandleColor: Colors.lightBlue,
|
/// selectionHandleColor: Colors.lightBlue,
|
||||||
/// ),
|
/// ),
|
||||||
/// child: TextField(),
|
/// child: TextField(),
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
class TextSelectionTheme extends InheritedTheme {
|
class TextSelectionTheme extends InheritedTheme {
|
||||||
|
@ -239,7 +239,7 @@ class TooltipThemeData with Diagnosticable {
|
|||||||
/// onPressed: () {},
|
/// onPressed: () {},
|
||||||
/// ),
|
/// ),
|
||||||
/// ),
|
/// ),
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
class TooltipTheme extends InheritedTheme {
|
class TooltipTheme extends InheritedTheme {
|
||||||
|
@ -282,7 +282,7 @@ import 'text_style.dart';
|
|||||||
/// fontSize: 14,
|
/// fontSize: 14,
|
||||||
/// forceStrutHeight: true,
|
/// forceStrutHeight: true,
|
||||||
/// ),
|
/// ),
|
||||||
/// ),
|
/// )
|
||||||
/// ```
|
/// ```
|
||||||
/// {@end-tool}
|
/// {@end-tool}
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user