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
e667b3c0
Commit
e667b3c0
authored
Oct 26, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better feedback for null child to a Block or Column
Fixes #1687.
parent
a6c473ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+4
-2
scrollable.dart
packages/flutter/lib/src/widgets/scrollable.dart
+3
-1
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
e667b3c0
...
...
@@ -272,8 +272,10 @@ abstract class OneChildRenderObjectWidget extends RenderObjectWidget {
/// storage for that child list, it doesn't actually provide the updating
/// logic.)
abstract
class
MultiChildRenderObjectWidget
extends
RenderObjectWidget
{
const
MultiChildRenderObjectWidget
({
Key
key
,
this
.
children
})
:
super
(
key:
key
);
MultiChildRenderObjectWidget
({
Key
key
,
this
.
children
})
:
super
(
key:
key
)
{
assert
(!
children
.
any
((
Widget
child
)
=>
child
==
null
));
}
final
List
<
Widget
>
children
;
...
...
packages/flutter/lib/src/widgets/scrollable.dart
View file @
e667b3c0
...
...
@@ -384,7 +384,9 @@ class Block extends StatelessComponent {
this
.
initialScrollOffset
,
this
.
scrollDirection
:
ScrollDirection
.
vertical
,
this
.
onScroll
})
:
super
(
key:
key
);
})
:
super
(
key:
key
)
{
assert
(!
children
.
any
((
Widget
child
)
=>
child
==
null
));
}
final
List
<
Widget
>
children
;
final
double
initialScrollOffset
;
...
...
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