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
b73670a3
Commit
b73670a3
authored
Mar 05, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more dartdoc
parent
59664e4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+1
-0
pageable_list.dart
packages/flutter/lib/src/widgets/pageable_list.dart
+21
-0
placeholder.dart
packages/flutter/lib/src/widgets/placeholder.dart
+3
-0
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
b73670a3
...
...
@@ -998,6 +998,7 @@ class BlockBody extends MultiChildRenderObjectWidget {
}
}
/// A base class for widgets that accept [Positioned] children.
abstract
class
StackRenderObjectWidgetBase
extends
MultiChildRenderObjectWidget
{
StackRenderObjectWidgetBase
({
List
<
Widget
>
children:
_emptyWidgetList
,
...
...
packages/flutter/lib/src/widgets/pageable_list.dart
View file @
b73670a3
...
...
@@ -18,6 +18,10 @@ enum ItemsSnapAlignment {
adjacentItem
}
/// Scrollable widget that scrolls one "page" at a time.
///
/// In a pageable list, one child is visible at a time. Scrolling the list
/// reveals either the next or previous child.
class
PageableList
extends
Scrollable
{
PageableList
({
Key
key
,
...
...
@@ -46,17 +50,34 @@ class PageableList extends Scrollable {
snapOffsetCallback:
snapOffsetCallback
);
/// Whether the first item should be revealed after scrolling past the last item.
final
bool
itemsWrap
;
/// Controls whether a fling always reveals the adjacent item or whether flings can traverse many items.
final
ItemsSnapAlignment
itemsSnapAlignment
;
/// Called when the currently visible page changes.
final
ValueChanged
<
int
>
onPageChanged
;
/// Used to paint the scrollbar for this list.
final
ScrollableListPainter
scrollableListPainter
;
/// The duration used when animating to a given page.
final
Duration
duration
;
/// The animation curve to use when animating to a given page.
final
Curve
curve
;
/// The list of pages themselves.
final
Iterable
<
Widget
>
children
;
PageableListState
createState
()
=>
new
PageableListState
();
}
/// State for a [PageableList] widget.
///
/// Widgets that subclass [PageableList] can subclass this class to have
/// sensible default behaviors for pageable lists.
class
PageableListState
<
T
extends
PageableList
>
extends
ScrollableState
<
T
>
{
int
get
_itemCount
=>
config
.
children
?.
length
??
0
;
int
_previousItemCount
;
...
...
packages/flutter/lib/src/widgets/placeholder.dart
View file @
b73670a3
...
...
@@ -12,6 +12,9 @@ class Placeholder extends StatefulComponent {
PlaceholderState
createState
()
=>
new
PlaceholderState
();
}
/// State for a [Placeholder] widget.
///
/// Useful for setting the child currently displayed by this placeholder widget.
class
PlaceholderState
extends
State
<
Placeholder
>
{
/// The child that this widget builds.
///
...
...
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