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
8f3a12f1
Unverified
Commit
8f3a12f1
authored
Dec 04, 2020
by
Alexandre Ardhuin
Committed by
GitHub
Dec 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nullability of parameters with redirecting factory constructors (#71547)
parent
4d4d017a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
51 deletions
+51
-51
flat_button.dart
packages/flutter/lib/src/material/flat_button.dart
+21
-21
raised_button.dart
packages/flutter/lib/src/material/raised_button.dart
+24
-24
typography.dart
packages/flutter/lib/src/material/typography.dart
+6
-6
No files found.
packages/flutter/lib/src/material/flat_button.dart
View file @
8f3a12f1
...
@@ -176,31 +176,31 @@ class FlatButton extends MaterialButton {
...
@@ -176,31 +176,31 @@ class FlatButton extends MaterialButton {
///
///
/// The [icon], [label], and [clipBehavior] arguments must not be null.
/// The [icon], [label], and [clipBehavior] arguments must not be null.
factory
FlatButton
.
icon
({
factory
FlatButton
.
icon
({
Key
key
,
Key
?
key
,
required
VoidCallback
onPressed
,
required
VoidCallback
?
onPressed
,
VoidCallback
onLongPress
,
VoidCallback
?
onLongPress
,
ValueChanged
<
bool
>
onHighlightChanged
,
ValueChanged
<
bool
>
?
onHighlightChanged
,
MouseCursor
mouseCursor
,
MouseCursor
?
mouseCursor
,
ButtonTextTheme
textTheme
,
ButtonTextTheme
?
textTheme
,
Color
textColor
,
Color
?
textColor
,
Color
disabledTextColor
,
Color
?
disabledTextColor
,
Color
color
,
Color
?
color
,
Color
disabledColor
,
Color
?
disabledColor
,
Color
focusColor
,
Color
?
focusColor
,
Color
hoverColor
,
Color
?
hoverColor
,
Color
highlightColor
,
Color
?
highlightColor
,
Color
splashColor
,
Color
?
splashColor
,
Brightness
colorBrightness
,
Brightness
?
colorBrightness
,
EdgeInsetsGeometry
padding
,
EdgeInsetsGeometry
?
padding
,
ShapeBorder
shape
,
ShapeBorder
?
shape
,
Clip
clipBehavior
,
Clip
clipBehavior
,
FocusNode
focusNode
,
FocusNode
?
focusNode
,
bool
autofocus
,
bool
autofocus
,
MaterialTapTargetSize
materialTapTargetSize
,
MaterialTapTargetSize
?
materialTapTargetSize
,
required
Widget
icon
,
required
Widget
icon
,
required
Widget
label
,
required
Widget
label
,
double
minWidth
,
double
?
minWidth
,
double
height
,
double
?
height
,
})
=
_FlatButtonWithIcon
;
})
=
_FlatButtonWithIcon
;
@override
@override
...
...
packages/flutter/lib/src/material/raised_button.dart
View file @
8f3a12f1
...
@@ -196,31 +196,31 @@ class RaisedButton extends MaterialButton {
...
@@ -196,31 +196,31 @@ class RaisedButton extends MaterialButton {
/// The [elevation], [highlightElevation], [disabledElevation], [icon],
/// The [elevation], [highlightElevation], [disabledElevation], [icon],
/// [label], and [clipBehavior] arguments must not be null.
/// [label], and [clipBehavior] arguments must not be null.
factory
RaisedButton
.
icon
({
factory
RaisedButton
.
icon
({
Key
key
,
Key
?
key
,
required
VoidCallback
onPressed
,
required
VoidCallback
?
onPressed
,
VoidCallback
onLongPress
,
VoidCallback
?
onLongPress
,
ValueChanged
<
bool
>
onHighlightChanged
,
ValueChanged
<
bool
>
?
onHighlightChanged
,
MouseCursor
mouseCursor
,
MouseCursor
?
mouseCursor
,
ButtonTextTheme
textTheme
,
ButtonTextTheme
?
textTheme
,
Color
textColor
,
Color
?
textColor
,
Color
disabledTextColor
,
Color
?
disabledTextColor
,
Color
color
,
Color
?
color
,
Color
disabledColor
,
Color
?
disabledColor
,
Color
focusColor
,
Color
?
focusColor
,
Color
hoverColor
,
Color
?
hoverColor
,
Color
highlightColor
,
Color
?
highlightColor
,
Color
splashColor
,
Color
?
splashColor
,
Brightness
colorBrightness
,
Brightness
?
colorBrightness
,
double
elevation
,
double
?
elevation
,
double
highlightElevation
,
double
?
highlightElevation
,
double
disabledElevation
,
double
?
disabledElevation
,
ShapeBorder
shape
,
ShapeBorder
?
shape
,
Clip
clipBehavior
,
Clip
clipBehavior
,
FocusNode
focusNode
,
FocusNode
?
focusNode
,
bool
autofocus
,
bool
autofocus
,
EdgeInsetsGeometry
padding
,
EdgeInsetsGeometry
?
padding
,
MaterialTapTargetSize
materialTapTargetSize
,
MaterialTapTargetSize
?
materialTapTargetSize
,
Duration
animationDuration
,
Duration
?
animationDuration
,
required
Widget
icon
,
required
Widget
icon
,
required
Widget
label
,
required
Widget
label
,
})
=
_RaisedButtonWithIcon
;
})
=
_RaisedButtonWithIcon
;
...
@@ -276,7 +276,7 @@ class RaisedButton extends MaterialButton {
...
@@ -276,7 +276,7 @@ class RaisedButton extends MaterialButton {
class
_RaisedButtonWithIcon
extends
RaisedButton
with
MaterialButtonWithIconMixin
{
class
_RaisedButtonWithIcon
extends
RaisedButton
with
MaterialButtonWithIconMixin
{
_RaisedButtonWithIcon
({
_RaisedButtonWithIcon
({
Key
?
key
,
Key
?
key
,
required
VoidCallback
onPressed
,
required
VoidCallback
?
onPressed
,
VoidCallback
?
onLongPress
,
VoidCallback
?
onLongPress
,
ValueChanged
<
bool
>?
onHighlightChanged
,
ValueChanged
<
bool
>?
onHighlightChanged
,
MouseCursor
?
mouseCursor
,
MouseCursor
?
mouseCursor
,
...
...
packages/flutter/lib/src/material/typography.dart
View file @
8f3a12f1
...
@@ -96,12 +96,12 @@ class Typography with Diagnosticable {
...
@@ -96,12 +96,12 @@ class Typography with Diagnosticable {
'This feature was deprecated after v1.13.8.'
'This feature was deprecated after v1.13.8.'
)
)
factory
Typography
({
factory
Typography
({
TargetPlatform
platform
,
TargetPlatform
?
platform
,
TextTheme
black
,
TextTheme
?
black
,
TextTheme
white
,
TextTheme
?
white
,
TextTheme
englishLike
,
TextTheme
?
englishLike
,
TextTheme
dense
,
TextTheme
?
dense
,
TextTheme
tall
,
TextTheme
?
tall
,
})
=
Typography
.
material2014
;
})
=
Typography
.
material2014
;
/// Creates a typography instance using material design's 2014 defaults.
/// Creates a typography instance using material design's 2014 defaults.
...
...
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