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
10febea8
Unverified
Commit
10febea8
authored
Sep 23, 2020
by
Alexandre Ardhuin
Committed by
GitHub
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nullability issues (#66418)
parent
45fa60eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
button.dart
packages/flutter/lib/src/cupertino/button.dart
+1
-1
list_wheel_scroll_view.dart
packages/flutter/lib/src/widgets/list_wheel_scroll_view.dart
+1
-5
No files found.
packages/flutter/lib/src/cupertino/button.dart
View file @
10febea8
...
...
@@ -211,7 +211,7 @@ class _CupertinoButtonState extends State<CupertinoButton> with SingleTickerProv
Widget
build
(
BuildContext
context
)
{
final
bool
enabled
=
widget
.
enabled
;
final
CupertinoThemeData
themeData
=
CupertinoTheme
.
of
(
context
);
final
Color
?
primaryColor
=
themeData
.
primaryColor
;
final
Color
primaryColor
=
themeData
.
primaryColor
;
final
Color
?
backgroundColor
=
widget
.
color
==
null
?
(
widget
.
_filled
?
primaryColor
:
null
)
:
CupertinoDynamicColor
.
resolve
(
widget
.
color
,
context
);
...
...
packages/flutter/lib/src/widgets/list_wheel_scroll_view.dart
View file @
10febea8
...
...
@@ -181,11 +181,7 @@ class ListWheelChildBuilderDelegate extends ListWheelChildDelegate {
@override
Widget
?
build
(
BuildContext
context
,
int
index
)
{
if
(
childCount
==
null
)
{
final
Widget
child
=
builder
(
context
,
index
);
// `child` has a non-nullable return type, but might be null when
// running with weak checking, so we need to null check it anyway (and
// ignore the warning that the null-handling logic is dead code).
// ignore: dead_code
final
Widget
?
child
=
builder
(
context
,
index
);
return
child
==
null
?
null
:
IndexedSemantics
(
child:
child
,
index:
index
);
}
if
(
index
<
0
||
index
>=
childCount
!)
...
...
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