Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
0151359c
Unverified
Commit
0151359c
authored
Aug 03, 2021
by
Greg Spencer
Committed by
GitHub
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some errors in snippets (#87528)
parent
cf0be0a1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
20 deletions
+18
-20
.cirrus.yml
.cirrus.yml
+9
-10
analyze.dart
dev/bots/analyze.dart
+1
-1
context_menu.dart
packages/flutter/lib/src/cupertino/context_menu.dart
+1
-1
list_tile.dart
packages/flutter/lib/src/material/list_tile.dart
+1
-1
progress_indicator_theme.dart
...es/flutter/lib/src/material/progress_indicator_theme.dart
+3
-4
text_selection_theme.dart
packages/flutter/lib/src/material/text_selection_theme.dart
+1
-1
tooltip_theme.dart
packages/flutter/lib/src/material/tooltip_theme.dart
+1
-1
strut_style.dart
packages/flutter/lib/src/painting/strut_style.dart
+1
-1
No files found.
.cirrus.yml
View file @
0151359c
...
@@ -67,16 +67,15 @@ task:
...
@@ -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
!=
''"
...
...
dev/bots/analyze.dart
View file @
0151359c
...
@@ -106,7 +106,7 @@ Future<void> run(List<String> arguments) async {
...
@@ -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
,
);
);
...
...
packages/flutter/lib/src/cupertino/context_menu.dart
View file @
0151359c
...
@@ -212,7 +212,7 @@ class CupertinoContextMenu extends StatefulWidget {
...
@@ -212,7 +212,7 @@ class CupertinoContextMenu extends StatefulWidget {
/// onPressed: () {},
/// onPressed: () {},
/// ),
/// ),
/// ],
/// ],
/// )
,
/// )
/// ```
/// ```
///
///
/// {@end-tool}
/// {@end-tool}
...
...
packages/flutter/lib/src/material/list_tile.dart
View file @
0151359c
...
@@ -429,7 +429,7 @@ enum ListTileControlAffinity {
...
@@ -429,7 +429,7 @@ enum ListTileControlAffinity {
/// ),
/// ),
/// title: const Text('title'),
/// title: const Text('title'),
/// dense: false,
/// dense: false,
/// )
,
/// )
/// ```
/// ```
/// {@end-tool}
/// {@end-tool}
///
///
...
...
packages/flutter/lib/src/material/progress_indicator_theme.dart
View file @
0151359c
...
@@ -138,16 +138,15 @@ class ProgressIndicatorThemeData with Diagnosticable {
...
@@ -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
{
...
...
packages/flutter/lib/src/material/text_selection_theme.dart
View file @
0151359c
...
@@ -128,7 +128,7 @@ class TextSelectionThemeData with Diagnosticable {
...
@@ -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
{
...
...
packages/flutter/lib/src/material/tooltip_theme.dart
View file @
0151359c
...
@@ -239,7 +239,7 @@ class TooltipThemeData with Diagnosticable {
...
@@ -239,7 +239,7 @@ class TooltipThemeData with Diagnosticable {
/// onPressed: () {},
/// onPressed: () {},
/// ),
/// ),
/// ),
/// ),
/// )
,
/// )
/// ```
/// ```
/// {@end-tool}
/// {@end-tool}
class
TooltipTheme
extends
InheritedTheme
{
class
TooltipTheme
extends
InheritedTheme
{
...
...
packages/flutter/lib/src/painting/strut_style.dart
View file @
0151359c
...
@@ -282,7 +282,7 @@ import 'text_style.dart';
...
@@ -282,7 +282,7 @@ import 'text_style.dart';
/// fontSize: 14,
/// fontSize: 14,
/// forceStrutHeight: true,
/// forceStrutHeight: true,
/// ),
/// ),
/// )
,
/// )
/// ```
/// ```
/// {@end-tool}
/// {@end-tool}
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment