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
4b4287ba
Unverified
Commit
4b4287ba
authored
Jul 23, 2020
by
Michael Goderbauer
Committed by
GitHub
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it an error to break macros in docs (and fix existing broken macros) (#62071)
parent
cac22cdb
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
104 additions
and
136 deletions
+104
-136
dartdoc_options.yaml
dartdoc_options.yaml
+7
-0
button.dart
packages/flutter/lib/src/material/button.dart
+1
-1
color_scheme.dart
packages/flutter/lib/src/material/color_scheme.dart
+1
-1
icon_button.dart
packages/flutter/lib/src/material/icon_button.dart
+1
-1
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+1
-1
slider_theme.dart
packages/flutter/lib/src/material/slider_theme.dart
+80
-125
text_theme.dart
packages/flutter/lib/src/material/text_theme.dart
+1
-1
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+1
-1
paragraph.dart
packages/flutter/lib/src/rendering/paragraph.dart
+1
-1
raw_keyboard_windows.dart
packages/flutter/lib/src/services/raw_keyboard_windows.dart
+5
-1
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+1
-1
binding.dart
packages/flutter/lib/src/widgets/binding.dart
+1
-1
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+3
-1
No files found.
dartdoc_options.yaml
View file @
4b4287ba
...
...
@@ -12,3 +12,10 @@ dartdoc:
dartpad
:
command
:
[
"
dev/snippets/lib/main.dart"
,
"
--type=sample"
,
"
--dartpad"
]
description
:
"
Creates
full
application
sample
code
documentation
output
from
embedded
documentation
samples
and
displays
it
in
an
embedded
DartPad."
errors
:
-
tool-error
# enabled by default
-
duplicate-file
# enabled by default
-
invalid-parameter
# enabled by default
-
unresolved-export
# enabled by default
-
unknown-macro
# a {@macro foo} reference cannot be resolved
-
invalid-parameter
# an invalid parameter is passed to a {@foo x y} directive
packages/flutter/lib/src/material/button.dart
View file @
4b4287ba
...
...
@@ -119,7 +119,7 @@ class RawMaterialButton extends StatefulWidget {
/// * [MaterialState.disabled].
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
/// {@endtemplate
flutter.material.button.mouseCursor
}
/// {@endtemplate}
final
MouseCursor
mouseCursor
;
/// Defines the default text style, with [Material.textStyle], for the
...
...
packages/flutter/lib/src/material/color_scheme.dart
View file @
4b4287ba
...
...
@@ -245,7 +245,7 @@ class ColorScheme with Diagnosticable {
/// Linearly interpolate between two [ColorScheme] objects.
///
/// {@macro
flutter.material.themeData
.lerp}
/// {@macro
dart.ui.shadow
.lerp}
static
ColorScheme
lerp
(
ColorScheme
a
,
ColorScheme
b
,
double
t
)
{
return
ColorScheme
(
primary:
Color
.
lerp
(
a
.
primary
,
b
.
primary
,
t
),
...
...
packages/flutter/lib/src/material/icon_button.dart
View file @
4b4287ba
...
...
@@ -278,7 +278,7 @@ class IconButton extends StatelessWidget {
/// If this is set to null, the button will be disabled.
final
VoidCallback
onPressed
;
/// {@macro flutter.material.
inkwell.mousec
ursor}
/// {@macro flutter.material.
button.mouseC
ursor}
///
/// Defaults to [SystemMouseCursors.click].
final
MouseCursor
mouseCursor
;
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
4b4287ba
...
...
@@ -126,7 +126,7 @@ class ScaffoldPrelayoutGeometry {
/// The minimum padding to inset the [FloatingActionButton] by for it
/// to remain visible.
///
/// This value is the result of calling [MediaQuery.padding] in the
/// This value is the result of calling [MediaQuery
Data
.padding] in the
/// [Scaffold]'s [BuildContext],
/// and is useful for insetting the [FloatingActionButton] to avoid features like
/// the system status bar or the keyboard.
...
...
packages/flutter/lib/src/material/slider_theme.dart
View file @
4b4287ba
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/material/text_theme.dart
View file @
4b4287ba
...
...
@@ -685,7 +685,7 @@ class TextTheme with Diagnosticable {
/// Linearly interpolate between two text themes.
///
/// {@macro
flutter.material.themeData
.lerp}
/// {@macro
dart.ui.shadow
.lerp}
static
TextTheme
lerp
(
TextTheme
a
,
TextTheme
b
,
double
t
)
{
assert
(
t
!=
null
);
return
TextTheme
(
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
4b4287ba
...
...
@@ -330,7 +330,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
markNeedsTextLayout
();
}
/// {@macro flutter.
widgets.text.DefaultTextStyle
.textWidthBasis}
/// {@macro flutter.
painting.textPainter
.textWidthBasis}
TextWidthBasis
get
textWidthBasis
=>
_textPainter
.
textWidthBasis
;
set
textWidthBasis
(
TextWidthBasis
value
)
{
assert
(
value
!=
null
);
...
...
packages/flutter/lib/src/rendering/paragraph.dart
View file @
4b4287ba
...
...
@@ -269,7 +269,7 @@ class RenderParagraph extends RenderBox
markNeedsLayout
();
}
/// {@macro flutter.
widgets.basic.T
extWidthBasis}
/// {@macro flutter.
painting.textPainter.t
extWidthBasis}
TextWidthBasis
get
textWidthBasis
=>
_textPainter
.
textWidthBasis
;
set
textWidthBasis
(
TextWidthBasis
value
)
{
assert
(
value
!=
null
);
...
...
packages/flutter/lib/src/services/raw_keyboard_windows.dart
View file @
4b4287ba
...
...
@@ -210,7 +210,11 @@ class RawKeyEventDataWindows extends RawKeyEventData {
/// This mask is used to check the [modifiers] field to test whether one of the
/// SHIFT modifier keys is pressed.
///
/// {@macro flutter.services.rawKeyEventDataWindows.modifiers}
/// {@template flutter.services.rawKeyEventDataWindows.modifiers}
/// Use this value if you need to decode the [modifiers] field yourself, but
/// it's much easier to use [isModifierPressed] if you just want to know if
/// a modifier is pressed.
/// {@endtemplate}
static
const
int
modifierShift
=
1
<<
0
;
/// This mask is used to check the [modifiers] field to test whether the left
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
4b4287ba
...
...
@@ -5271,7 +5271,7 @@ class RichText extends MultiChildRenderObjectWidget {
/// {@macro flutter.painting.textPainter.strutStyle}
final
StrutStyle
strutStyle
;
/// {@macro flutter.
widgets.text.DefaultTextStyle
.textWidthBasis}
/// {@macro flutter.
painting.textPainter
.textWidthBasis}
final
TextWidthBasis
textWidthBasis
;
/// {@macro flutter.dart:ui.textHeightBehavior}
...
...
packages/flutter/lib/src/widgets/binding.dart
View file @
4b4287ba
...
...
@@ -695,7 +695,7 @@ mixin WidgetsBinding on BindingBase, ServicesBinding, SchedulerBinding, GestureB
/// A future that completes when the Flutter engine has rasterized the first
/// frame.
///
/// {@macro flutter.frame_rasterize_vs_presented}
/// {@macro flutter.frame_rasterize
d
_vs_presented}
///
/// See also:
///
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
4b4287ba
...
...
@@ -518,7 +518,7 @@ class EditableText extends StatefulWidget {
/// {@macro flutter.dart:ui.textHeightBehavior},
final
TextHeightBehavior
textHeightBehavior
;
/// {@macro flutter.
widgets.text.DefaultTextStyle
.textWidthBasis}
/// {@macro flutter.
painting.textPainter
.textWidthBasis}
final
TextWidthBasis
textWidthBasis
;
/// {@template flutter.widgets.editableText.readOnly}
...
...
@@ -685,6 +685,7 @@ class EditableText extends StatefulWidget {
/// See [RenderEditable.locale] for more information.
final
Locale
locale
;
/// {@template flutter.widgets.editableText.textScaleFactor}
/// The number of font pixels for each logical pixel.
///
/// For example, if the text scale factor is 1.5, text will be 50% larger than
...
...
@@ -692,6 +693,7 @@ class EditableText extends StatefulWidget {
///
/// Defaults to the [MediaQueryData.textScaleFactor] obtained from the ambient
/// [MediaQuery], or 1.0 if there is no [MediaQuery] in scope.
/// {@endtemplate}
final
double
textScaleFactor
;
/// The color to use when painting the cursor.
...
...
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