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
5d1306e7
Unverified
Commit
5d1306e7
authored
Jan 08, 2021
by
Michael Goderbauer
Committed by
GitHub
Jan 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outdated links (#73514)
parent
f461f1c9
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
61 deletions
+61
-61
buttons_demo.dart
...tests/flutter_gallery/lib/demo/material/buttons_demo.dart
+6
-6
selection_controls_demo.dart
...er_gallery/lib/demo/material/selection_controls_demo.dart
+3
-3
slider_demo.dart
..._tests/flutter_gallery/lib/demo/material/slider_demo.dart
+2
-2
app.dart
dev/integration_tests/flutter_gallery/lib/gallery/app.dart
+1
-1
demos.dart
dev/integration_tests/flutter_gallery/lib/gallery/demos.dart
+39
-39
dartdoc.dart
dev/tools/dartdoc.dart
+3
-3
animated_list.dart
packages/flutter/lib/src/widgets/animated_list.dart
+1
-1
README.md
packages/flutter_localizations/lib/src/l10n/README.md
+3
-3
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+2
-2
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+1
-1
No files found.
dev/integration_tests/flutter_gallery/lib/demo/material/buttons_demo.dart
View file @
5d1306e7
...
@@ -63,42 +63,42 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
...
@@ -63,42 +63,42 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
description:
_elevatedText
,
description:
_elevatedText
,
demoWidget:
buildElevatedButton
(
_buttonShape
),
demoWidget:
buildElevatedButton
(
_buttonShape
),
exampleCodeTag:
_elevatedCode
,
exampleCodeTag:
_elevatedCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/ElevatedButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/ElevatedButton-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'TEXT'
,
tabName:
'TEXT'
,
description:
_textText
,
description:
_textText
,
demoWidget:
buildTextButton
(
_buttonShape
),
demoWidget:
buildTextButton
(
_buttonShape
),
exampleCodeTag:
_textCode
,
exampleCodeTag:
_textCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/TextButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/TextButton-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'OUTLINED'
,
tabName:
'OUTLINED'
,
description:
_outlinedText
,
description:
_outlinedText
,
demoWidget:
buildOutlinedButton
(
_buttonShape
),
demoWidget:
buildOutlinedButton
(
_buttonShape
),
exampleCodeTag:
_outlinedCode
,
exampleCodeTag:
_outlinedCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/OutlinedButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/OutlinedButton-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'DROPDOWN'
,
tabName:
'DROPDOWN'
,
description:
_dropdownText
,
description:
_dropdownText
,
demoWidget:
buildDropdownButton
(),
demoWidget:
buildDropdownButton
(),
exampleCodeTag:
_dropdownCode
,
exampleCodeTag:
_dropdownCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/DropdownButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/DropdownButton-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'ICON'
,
tabName:
'ICON'
,
description:
_iconText
,
description:
_iconText
,
demoWidget:
buildIconButton
(),
demoWidget:
buildIconButton
(),
exampleCodeTag:
_iconCode
,
exampleCodeTag:
_iconCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/IconButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/IconButton-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'ACTION'
,
tabName:
'ACTION'
,
description:
_actionText
,
description:
_actionText
,
demoWidget:
buildActionButton
(),
demoWidget:
buildActionButton
(),
exampleCodeTag:
_actionCode
,
exampleCodeTag:
_actionCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/FloatingActionButton-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/FloatingActionButton-class.html'
,
),
),
];
];
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/selection_controls_demo.dart
View file @
5d1306e7
...
@@ -43,21 +43,21 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
...
@@ -43,21 +43,21 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
description:
_checkboxText
,
description:
_checkboxText
,
demoWidget:
buildCheckbox
(),
demoWidget:
buildCheckbox
(),
exampleCodeTag:
_checkboxCode
,
exampleCodeTag:
_checkboxCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/Checkbox-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/Checkbox-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'RADIO'
,
tabName:
'RADIO'
,
description:
_radioText
,
description:
_radioText
,
demoWidget:
buildRadio
(),
demoWidget:
buildRadio
(),
exampleCodeTag:
_radioCode
,
exampleCodeTag:
_radioCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/Radio-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/Radio-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'SWITCH'
,
tabName:
'SWITCH'
,
description:
_switchText
,
description:
_switchText
,
demoWidget:
buildSwitch
(),
demoWidget:
buildSwitch
(),
exampleCodeTag:
_switchCode
,
exampleCodeTag:
_switchCode
,
documentationUrl:
'https://
docs.flutter.io
/flutter/material/Switch-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/Switch-class.html'
,
),
),
];
];
...
...
dev/integration_tests/flutter_gallery/lib/demo/material/slider_demo.dart
View file @
5d1306e7
...
@@ -217,13 +217,13 @@ class _SliderDemoState extends State<SliderDemo> {
...
@@ -217,13 +217,13 @@ class _SliderDemoState extends State<SliderDemo> {
tabName:
'SINGLE'
,
tabName:
'SINGLE'
,
description:
'Sliders containing 1 thumb'
,
description:
'Sliders containing 1 thumb'
,
demoWidget:
_Sliders
(),
demoWidget:
_Sliders
(),
documentationUrl:
'https://
docs.flutter.io
/flutter/material/Slider-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/Slider-class.html'
,
),
),
ComponentDemoTabData
(
ComponentDemoTabData
(
tabName:
'RANGE'
,
tabName:
'RANGE'
,
description:
'Sliders containing 2 thumbs'
,
description:
'Sliders containing 2 thumbs'
,
demoWidget:
_RangeSliders
(),
demoWidget:
_RangeSliders
(),
documentationUrl:
'https://
docs.flutter.io
/flutter/material/RangeSlider-class.html'
,
documentationUrl:
'https://
api.flutter.dev
/flutter/material/RangeSlider-class.html'
,
),
),
];
];
...
...
dev/integration_tests/flutter_gallery/lib/gallery/app.dart
View file @
5d1306e7
...
@@ -50,7 +50,7 @@ class _GalleryAppState extends State<GalleryApp> {
...
@@ -50,7 +50,7 @@ class _GalleryAppState extends State<GalleryApp> {
Map
<
String
,
WidgetBuilder
>
_buildRoutes
()
{
Map
<
String
,
WidgetBuilder
>
_buildRoutes
()
{
// For a different example of how to set up an application routing table
// For a different example of how to set up an application routing table
// using named routes, consider the example in the Navigator class documentation:
// using named routes, consider the example in the Navigator class documentation:
// https://
docs.flutter.io
/flutter/widgets/Navigator-class.html
// https://
api.flutter.dev
/flutter/widgets/Navigator-class.html
return
<
String
,
WidgetBuilder
>{
return
<
String
,
WidgetBuilder
>{
for
(
final
GalleryDemo
demo
in
kAllGalleryDemos
)
demo
.
routeName
:
demo
.
buildRoute
,
for
(
final
GalleryDemo
demo
in
kAllGalleryDemos
)
demo
.
routeName
:
demo
.
buildRoute
,
};
};
...
...
dev/integration_tests/flutter_gallery/lib/gallery/demos.dart
View file @
5d1306e7
This diff is collapsed.
Click to expand it.
dev/tools/dartdoc.dart
View file @
5d1306e7
...
@@ -24,8 +24,8 @@ const String kPlatformIntegrationPackageName = 'platform_integration';
...
@@ -24,8 +24,8 @@ const String kPlatformIntegrationPackageName = 'platform_integration';
/// documentation to `//dev/docs/doc/api/`.
/// documentation to `//dev/docs/doc/api/`.
///
///
/// This script also updates the index.html file so that it can be placed
/// This script also updates the index.html file so that it can be placed
/// at the root of
docs.flutter.io
. We are keeping the files inside of
/// at the root of
api.flutter.dev
. We are keeping the files inside of
///
docs.flutter.io
/flutter for now, so we need to manipulate paths
///
api.flutter.dev
/flutter for now, so we need to manipulate paths
/// a bit. See https://github.com/flutter/flutter/issues/3900 for more info.
/// a bit. See https://github.com/flutter/flutter/issues/3900 for more info.
///
///
/// This will only work on UNIX systems, not Windows. It requires that 'git' be
/// This will only work on UNIX systems, not Windows. It requires that 'git' be
...
@@ -303,7 +303,7 @@ void createSearchMetadata(String templatePath, String metadataPath) {
...
@@ -303,7 +303,7 @@ void createSearchMetadata(String templatePath, String metadataPath) {
final
String
branch
=
getBranchName
();
final
String
branch
=
getBranchName
();
final
String
metadata
=
template
.
replaceAll
(
final
String
metadata
=
template
.
replaceAll
(
'{SITE_URL}'
,
'{SITE_URL}'
,
branch
==
'stable'
?
'https://
docs.flutter.io/'
:
'https://master-docs.flutter.io
/'
,
branch
==
'stable'
?
'https://
api.flutter.dev/'
:
'https://master-api.flutter.dev
/'
,
);
);
Directory
(
path
.
dirname
(
metadataPath
)).
create
(
recursive:
true
);
Directory
(
path
.
dirname
(
metadataPath
)).
create
(
recursive:
true
);
File
(
metadataPath
).
writeAsStringSync
(
metadata
);
File
(
metadataPath
).
writeAsStringSync
(
metadata
);
...
...
packages/flutter/lib/src/widgets/animated_list.dart
View file @
5d1306e7
...
@@ -809,7 +809,7 @@ class SliverAnimatedList extends StatefulWidget {
...
@@ -809,7 +809,7 @@ class SliverAnimatedList extends StatefulWidget {
'happen when the context provided is from the same StatefulWidget that '
'happen when the context provided is from the same StatefulWidget that '
'built the AnimatedList. Please see the SliverAnimatedList documentation '
'built the AnimatedList. Please see the SliverAnimatedList documentation '
'for examples of how to refer to an AnimatedListState object: '
'for examples of how to refer to an AnimatedListState object: '
'https://
docs.flutter.io
/flutter/widgets/SliverAnimatedListState-class.html
\n
'
'https://
api.flutter.dev
/flutter/widgets/SliverAnimatedListState-class.html
\n
'
'The context used was:
\n
'
'The context used was:
\n
'
'
$context
'
);
'
$context
'
);
}
}
...
...
packages/flutter_localizations/lib/src/l10n/README.md
View file @
5d1306e7
...
@@ -140,10 +140,10 @@ translations, they're keywords that help define an app's text theme
...
@@ -140,10 +140,10 @@ translations, they're keywords that help define an app's text theme
and time picker layout respectively.
and time picker layout respectively.
The value of
`timeOfDayFormat`
defines how a time picker displayed by
The value of
`timeOfDayFormat`
defines how a time picker displayed by
[
showTimePicker()
](
https://
docs.flutter.io
/flutter/material/showTimePicker.html
)
[
showTimePicker()
](
https://
api.flutter.dev
/flutter/material/showTimePicker.html
)
formats and lays out its time controls. The value of
`timeOfDayFormat`
formats and lays out its time controls. The value of
`timeOfDayFormat`
must be a string that matches one of the formats defined by
must be a string that matches one of the formats defined by
<https://
docs.flutter.io
/flutter/material/TimeOfDayFormat-class.html>
.
<https://
api.flutter.dev
/flutter/material/TimeOfDayFormat-class.html>
.
It is converted to an enum value because the
`material_en.arb`
file
It is converted to an enum value because the
`material_en.arb`
file
has this value labeled as
`"x-flutter-type": "icuShortTimePattern"`
.
has this value labeled as
`"x-flutter-type": "icuShortTimePattern"`
.
...
@@ -152,7 +152,7 @@ The value of `scriptCategory` is based on the
...
@@ -152,7 +152,7 @@ The value of `scriptCategory` is based on the
section in the Material spec. The Material theme uses the
section in the Material spec. The Material theme uses the
`scriptCategory`
value to lookup a localized version of the default
`scriptCategory`
value to lookup a localized version of the default
`TextTheme`
, see
`TextTheme`
, see
[
Typography.geometryThemeFor
](
https://
docs.flutter.io
/flutter/material/Typography/geometryThemeFor.html
)
.
[
Typography.geometryThemeFor
](
https://
api.flutter.dev
/flutter/material/Typography/geometryThemeFor.html
)
.
### 'generated_*_localizations.dart': all of the localizations as a Map
### 'generated_*_localizations.dart': all of the localizations as a Map
...
...
packages/flutter_tools/lib/src/commands/create.dart
View file @
5d1306e7
...
@@ -92,8 +92,8 @@ class CreateCommand extends CreateBase {
...
@@ -92,8 +92,8 @@ class CreateCommand extends CreateBase {
/// The hostname for the Flutter docs for the current channel.
/// The hostname for the Flutter docs for the current channel.
String
get
_snippetsHost
=>
globals
.
flutterVersion
.
channel
==
'stable'
String
get
_snippetsHost
=>
globals
.
flutterVersion
.
channel
==
'stable'
?
'
docs.flutter.io
'
?
'
api.flutter.dev
'
:
'master-
docs.flutter.io
'
;
:
'master-
api.flutter.dev
'
;
Future
<
String
>
_fetchSampleFromServer
(
String
sampleId
)
async
{
Future
<
String
>
_fetchSampleFromServer
(
String
sampleId
)
async
{
// Sanity check the sampleId
// Sanity check the sampleId
...
...
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
5d1306e7
...
@@ -244,7 +244,7 @@ void main() {
...
@@ -244,7 +244,7 @@ void main() {
testWithoutContext
(
'flattenNameSubdirs'
,
()
{
testWithoutContext
(
'flattenNameSubdirs'
,
()
{
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'http://flutter.dev/foo/bar'
),
MemoryFileSystem
.
test
()),
'flutter.dev/foo/bar'
);
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'http://flutter.dev/foo/bar'
),
MemoryFileSystem
.
test
()),
'flutter.dev/foo/bar'
);
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'http://
docs.flutter.io/foo/bar'
),
MemoryFileSystem
.
test
()),
'docs.flutter.io
/foo/bar'
);
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'http://
api.flutter.dev/foo/bar'
),
MemoryFileSystem
.
test
()),
'api.flutter.dev
/foo/bar'
);
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'https://www.flutter.dev'
),
MemoryFileSystem
.
test
()),
'www.flutter.dev'
);
expect
(
flattenNameSubdirs
(
Uri
.
parse
(
'https://www.flutter.dev'
),
MemoryFileSystem
.
test
()),
'www.flutter.dev'
);
});
});
...
...
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